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

Function UniqueBy

util/generic/algorithm.h:302–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300
301template <class T, class TGetKey>
302constexpr T UniqueBy(T f, T l, const TGetKey& getKey) {
303 return Unique(f, l, [&](auto&& left, auto&& right) { return getKey(left) == getKey(right); });
304}
305
306template <class C>
307void SortUnique(C& c) {

Callers 2

SortUniqueByFunction · 0.85
StableSortUniqueByFunction · 0.85

Calls 1

UniqueFunction · 0.70

Tested by

no test coverage detected