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

Function MinElementBy

util/generic/algorithm.h:531–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

529
530template <class I, class F>
531constexpr I MinElementBy(I begin, I end, F&& func) {
532 using TValue = decltype(func(*begin));
533 return ::NPrivate::ExtremeElementBy(begin, end, std::forward<F>(func), TLess<TValue>());
534}
535
536template <class C, class F>
537constexpr auto MinElementBy(C& c, F&& func) {

Callers 2

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