Horizon
Public Member Functions | List of all members
ranges::views::transform_fn Struct Reference

#include <transform.hpp>

Inheritance diagram for ranges::views::transform_fn:
ranges::views::transform_base_fn

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
 
constexpr Fun transform_view< all_t< Rng >, Fun > operator() (Rng &&rng, Fun fun) const
 
 template (typename Rng1, typename Rng2, typename Fun)(requires transformable_ranges< Rng1
 
constexpr Fun transform2_view< all_t< Rng1 >, all_t< Rng2 >, Fun > operator() (Rng1 &&rng1, Rng2 &&rng2, Fun fun) const
 

Additional Inherited Members

- Public Attributes inherited from ranges::views::transform_base_fn
 Rng2
 

Detailed Description

ranges::views::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.

Example

Output

Syntax

CPP_concept input_range
\concept input_range
Definition: concepts.hpp:103
CPP_concept output_range
\concept output_range
Definition: concepts.hpp:91
_t< detail::transform_< list< Args... > >> transform
Return a new meta::list constructed by transforming all the elements in L with the unary invocable Fn...
Definition: meta.hpp:1855

Parameters

transform_func
input_range
output_range

The documentation for this struct was generated from the following file: