|
inlineconstexpr |
#include <eve/module/algo/algo/transform_keep_if.hpp>
Defined in Header
Conditionally copies values that pass a predicate to the beginning of the range, transforming them in the process. Values past the returned sentinel are to be considered garbage.
keep_if
+ views::map
might be slightly faster.transform_copy_if
and keep_if
for more details.Parameters
rng
: Range to modifyfunc
: Function that takes elements from rng
as SIMD registers and returns a pair of:Return value
Iterator past the last written element.