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

Function SortUnique

util/generic/algorithm.h:307–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305
306template <class C>
307void SortUnique(C& c) {
308 Sort(c.begin(), c.end());
309 c.erase(Unique(c.begin(), c.end()), c.end());
310}
311
312template <class C, class Cmp>
313void SortUnique(C& c, Cmp cmp) {

Callers 8

AlmostEqualMethod · 0.85
AlmostEqualModelInfoMethod · 0.85
LoadInMatrixnetFormatFunction · 0.85
CalcLabelToClassMapFunction · 0.85
AddTreeMethod · 0.85
InitMethod · 0.85
Y_UNIT_TESTFunction · 0.85

Calls 5

SortFunction · 0.70
UniqueFunction · 0.70
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected