|
inlineconstexpr |
#include <eve/module/algo/algo/max_element.hpp>
eve::algo::max_value
.By default unrolls by 4 and aligned all memory accesses.
std::max_element* returns first but this is more correct and this is also what
std::minmax_element` will return as max.eve::is_less
defined for your type is total order. (this comes up when switching min with max)Alternative Header
eve::is_less
Parameters
rng
: Relaxed input range to processless
: SIMD strict weak ordering.Return value
iterator to max element (end if the range is empty).
max_value
min_element