Names the range an algorithm should expect to be the shorter one.
Variables | |
| template<int N> | |
| constexpr auto | eve::algo::expect_smaller_range = (expect_smaller_range_key = eve::index<N>) |
|
inlineconstexpr |
#include <eve/module/algo.hpp>| N | Zero-based position of that range among the arguments. |
Names the range, by its zero-based position among the arguments, that is expected to run out first. An algorithm that reads two ranges, as eve::algo::set_intersection does, is faster when it is told which of them is the shorter. Shorter is a rough guide rather than a rule, and the choice is to be benchmarked on the data at hand.