E.V.E
v2023.02.15
 
Loading...
Searching...
No Matches

◆ single_pass

eve::algo::single_pass = ::rbr::flag(single_pass_tag {})
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.