|
inlineconstexpr |
#include <eve/module/algo/algo/max_value.hpp>
The standard only has _element
versions of min/max
algorithms. However, in SIMD finding the value is much faster then also finding the position - hense this algorithm.
eve::is_less
defined for your type is total order. (this comes up when switching max
with min
)Alternative Header
less
is eve::is_less
Parameters
rng
: Relaxed input range to processless
: SIMD strict weak ordering.Return value
maximum value from the range. If the input range was empty, it's std::nullopt
.
min_value
max_element