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

Function StableSortBy

util/generic/algorithm.h:87–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85
86template <class TIterator, typename TGetKey>
87static inline void StableSortBy(TIterator begin, TIterator end, const TGetKey& getKey) {
88 StableSort(begin, end, [&](auto&& left, auto&& right) { return getKey(left) < getKey(right); });
89}
90
91template <class TContainer, typename TGetKey>
92static inline void StableSortBy(TContainer& container, const TGetKey& getKey) {

Callers 5

GenerateEnumFunction · 0.85
CalcAndOutputSageValuesFunction · 0.85
StableSortUniqueByFunction · 0.85
Y_UNIT_TESTFunction · 0.85

Calls 3

StableSortFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected