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

Function StableSortUniqueBy

util/generic/algorithm.h:325–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323
324template <class C, class TGetKey>
325void StableSortUniqueBy(C& c, const TGetKey& getKey) {
326 StableSortBy(c, getKey);
327 c.erase(UniqueBy(c.begin(), c.end(), getKey), c.end());
328}
329
330template <class C, class TValue>
331void Erase(C& c, const TValue& value) {

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls 5

StableSortByFunction · 0.85
UniqueByFunction · 0.85
eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected