|
inlineconstexpr |
#include <eve/module/algo/algo/transform_copy_if.hpp>
Defined in header
copy_if
+ views::map
might be slightly faster.transform_keep_if
.Conditionally copies values from an input range to an output range, transforming them in the process.
If the output range is too small, fills all the available space and then stops.
If the output range's element type is different from the type of the values returned by the transforming function, performs the appropriate conversions.
Parameters
in
: Input rangeout
: Output rangefunc
: Function that takes elements from in
as SIMD registers and returns a pair of:Return value
Output iterator past the last written element.