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

Function SortBy

util/generic/algorithm.h:57–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56template <class TIterator, typename TGetKey>
57constexpr void SortBy(TIterator begin, TIterator end, const TGetKey& getKey) {
58 Sort(begin, end, [&](auto&& left, auto&& right) { return getKey(left) < getKey(right); });
59}
60
61template <class TContainer, typename TGetKey>
62constexpr void SortBy(TContainer& container, const TGetKey& getKey) {

Callers 5

SelectValuesFunction · 0.85
SelectStringsFunction · 0.85
SortMethod · 0.85
SortUniqueByFunction · 0.85
Y_UNIT_TESTFunction · 0.85

Calls 3

SortFunction · 0.70
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected