|
inlineconstexpr |
#include <eve/algo/max_value.hpp>
SIMD algorithm that returns maximum value in the range.
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_lessParameters
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