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

Function unique

test/schedule_test.cpp:231–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229
230template <class T>
231static std::vector<T> unique(std::vector<T> x)
232{
233 std::sort(x.begin(), x.end());
234 x.erase(std::unique(x.begin(), x.end()), x.end());
235 return x;
236}
237
238static std::vector<std::size_t> get_wait_for(std::vector<std::size_t> wait_for)
239{

Callers 1

get_wait_forFunction · 0.70

Calls 4

eraseMethod · 0.80
sortFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected