MCPcopy Create free account
hub / github.com/apple/coremltools / Sorted

Function Sorted

deps/protobuf/src/google/protobuf/compiler/cpp/cpp_file.cc:84–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83template <class T>
84std::vector<const T*> Sorted(const std::unordered_set<const T*>& vals) {
85 std::vector<const T*> sorted(vals.begin(), vals.end());
86 std::sort(sorted.begin(), sorted.end(), CompareSortKeys<T>);
87 return sorted;
88}
89
90} // namespace
91

Calls 3

sortFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected