#include <range/v3/view/transform.hpp>
Public Member Functions | |
template<typename Fun > | |
constexpr auto | operator() (Fun fun) const |
Public Member Functions inherited from ranges::views::transform_base_fn | |
template<typename Rng , typename Fun > requires transformable_range<Rng, Fun> | |
constexpr transform_view< all_t< Rng >, Fun > | operator() (Rng &&rng, Fun fun) const |
template<typename Rng1 , typename Rng2 , typename Fun > requires transformable_ranges<Rng1, Rng2, Fun> | |
constexpr transform2_view< all_t< Rng1 >, all_t< Rng2 >, Fun > | operator() (Rng1 &&rng1, Rng2 &&rng2, Fun fun) const |
Related Functions | |
(Note that these are not member functions.) | |
constexpr transform_fn | transform {} |
The transform view takes in a function T -> U
and converts an input range of T
into an output range of U
by calling the function on every element of the input range.
transform_func
transform_func(T) -> U
)input_range
T
output_range
U
decay_t<U>