| 513 | |
| 514 | template <class I, class F> |
| 515 | constexpr 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 | |
| 520 | template <class C, class F> |
| 521 | constexpr auto MaxElementBy(C& c, F&& func) { |
no test coverage detected