MCPcopy Create free account
hub / github.com/catboost/catboost / SortUniqueBy

Function SortUniqueBy

util/generic/algorithm.h:319–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317
318template <class C, class TGetKey>
319void SortUniqueBy(C& c, const TGetKey& getKey) {
320 SortBy(c, getKey);
321 c.erase(UniqueBy(c.begin(), c.end(), getKey), c.end());
322}
323
324template <class C, class TGetKey>
325void StableSortUniqueBy(C& c, const TGetKey& getKey) {

Callers 1

Calls 5

SortByFunction · 0.85
UniqueByFunction · 0.85
eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected