MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / get_names

Function get_names

tools/api/api.cpp:217–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215
216template <class Value>
217static std::vector<const char*> get_names(const std::unordered_map<std::string, Value>& m)
218{
219 std::vector<const char*> result;
220 std::transform(
221 m.begin(), m.end(), std::back_inserter(result), [](auto&& p) { return p.first.c_str(); });
222 return result;
223}
224
225template <class T>
226static std::set<T> make_set(const T* x, std::size_t n)

Callers

nothing calls this directly

Calls 3

transformFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected