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

Function MaxElementBy

util/generic/algorithm.h:515–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513
514template <class I, class F>
515constexpr I MaxElementBy(I begin, I end, F&& func) {
516 using TValue = decltype(func(*begin));
517 return ::NPrivate::ExtremeElementBy(begin, end, std::forward<F>(func), TGreater<TValue>());
518}
519
520template <class C, class F>
521constexpr auto MaxElementBy(C& c, F&& func) {

Callers 2

EvalErrorsWithLeavesFunction · 0.85
Y_UNIT_TESTFunction · 0.85

Calls 4

funcFunction · 0.85
ExtremeElementByFunction · 0.85
beginFunction · 0.70
endFunction · 0.70

Tested by

no test coverage detected