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

Function IsSortedBy

util/generic/algorithm.h:750–752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

748
749template <class TIterator, typename TGetKey>
750constexpr bool IsSortedBy(TIterator begin, TIterator end, const TGetKey& getKey) {
751 return IsSorted(begin, end, [&](auto&& left, auto&& right) { return getKey(left) < getKey(right); });
752}
753
754template <class TContainer, typename TGetKey>
755constexpr bool IsSortedBy(const TContainer& c, const TGetKey& getKey) {

Callers 2

TryStableSortKeysFunction · 0.85
Y_UNIT_TESTFunction · 0.85

Calls 3

IsSortedFunction · 0.85
beginFunction · 0.70
endFunction · 0.70

Tested by

no test coverage detected