|
inlineconstexpr |
#include <eve/module/algo/algo/traits.hpp>
By default min/max algorithms are min_value + find, since that proves to be faster on our benchmarks. However, if the body of your loop is expensive, you probably want to use index tracking. *NOTE*: consider if you should pass `expensive_callable` instead. *NOTE*: in a discussion [here](https://stackoverflow.com/a/70813588/5021064) Peter Cordes suspected that for large enough array one pass will be better as well - you can try.