Wayverb
|
#include <mapping_iterator_adapter.h>
Public Member Functions | |
constexpr | mapping_iterator_adapter (It it) |
constexpr | mapping_iterator_adapter (It it, Mapper mapper) |
template<class U , class V > | |
constexpr | mapping_iterator_adapter (const mapping_iterator_adapter< U, V > &other) |
template<class U , class V > | |
void | swap (mapping_iterator_adapter< U, V > &other) noexcept |
template<class U , class V > | |
constexpr mapping_iterator_adapter & | operator= (mapping_iterator_adapter< U, V > other) |
constexpr | mapping_iterator_adapter (const mapping_iterator_adapter &)=default |
constexpr | mapping_iterator_adapter (mapping_iterator_adapter &&) noexcept=default |
constexpr mapping_iterator_adapter & | operator= (const mapping_iterator_adapter &)=default |
constexpr mapping_iterator_adapter & | operator= (mapping_iterator_adapter &&) noexcept=default |
constexpr It | base () const |
constexpr value_type | operator* () const |
constexpr auto | operator-> () const |
constexpr value_type | operator[] (difference_type n) const |
constexpr mapping_iterator_adapter & | operator++ () |
constexpr mapping_iterator_adapter & | operator-- () |
constexpr mapping_iterator_adapter | operator++ (int) |
constexpr mapping_iterator_adapter | operator-- (int) |
constexpr mapping_iterator_adapter | operator+ (difference_type n) const |
constexpr mapping_iterator_adapter | operator- (difference_type n) const |
constexpr mapping_iterator_adapter & | operator+= (difference_type n) |
constexpr mapping_iterator_adapter & | operator-= (difference_type n) |
Friends | |
template<typename U , typename V > | |
class | mapping_iterator_adapter |
Allows inline transformations on iterators. When the iterator is dereferenced, it is passed through a unary functor of some kind, and the returned value is the output of this functor. Useful for 'pipelining' operations on iterators, or for adapting ranges when passing them to methods in a way that doesn't require a new range to be allocated