TRIQS/itertools 1.3.0
C++ range library
Loading...
Searching...
No Matches
itertools::transformed< R, F >

#include <itertools/transform.hpp>

Detailed Description

template<typename R, typename F>
struct itertools::transformed< R, F >

Represents a transformed range.

See itertools::transform(R &&, F) for more details.

Template Parameters
RRange type.
FCallable type.

Definition at line 126 of file transform.hpp.

Public Types

using const_iterator = transform_iter<decltype(std::cbegin(rg)), F>
 Const iterator type of the transformed range.
 
using iterator = const_iterator
 Iterator type of the transformed range.
 

Public Member Functions

const_iterator begin () const noexcept
 The same as cbegin().
 
const_iterator cbegin () const noexcept
 Beginning of the transformed range.
 
auto cend () const noexcept
 End of the transformed range.
 
auto end () const noexcept
 The same as cend().
 

Public Attributes

lambda
 Callable doing the transformation.
 
rg
 Original range.
 

Member Function Documentation

◆ cbegin()

template<typename R , typename F >
const_iterator itertools::transformed< R, F >::cbegin ( ) const
inlinenodiscardnoexcept

Beginning of the transformed range.

Returns
itertools::transform_iter constructed from the beginning of the original range and the callable.

Definition at line 143 of file transform.hpp.

◆ cend()

template<typename R , typename F >
auto itertools::transformed< R, F >::cend ( ) const
inlinenodiscardnoexcept

End of the transformed range.

Returns
itertools::sentinel_t containing the end iterator of the original range.

Definition at line 152 of file transform.hpp.


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