MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / STLSortAndRemoveDuplicates

Function STLSortAndRemoveDuplicates

tensorflow/core/lib/gtl/stl_util.h:137–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135// Sorts and removes duplicates from a sequence container.
136template <typename T>
137inline void STLSortAndRemoveDuplicates(T* v) {
138 std::sort(v->begin(), v->end());
139 v->erase(std::unique(v->begin(), v->end()), v->end());
140}
141
142} // namespace gtl
143} // namespace tensorflow

Callers

nothing calls this directly

Calls 5

sortFunction · 0.85
uniqueFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected