TermOx
|
operator*() will apply map
to the result of the underlying deref result.
More...
#include <transform_iterator.hpp>
Public Member Functions | |
Transform_iterator (Iter it, Map_fn map_fn) | |
Transform_iterator (Transform_iterator const &)=default | |
Transform_iterator (Transform_iterator &&)=default | |
Transform_iterator & | operator= (Transform_iterator const &other) |
Transform_iterator & | operator= (Transform_iterator &&)=default |
auto | operator++ () -> Transform_iterator & |
auto | operator++ (int) -> Transform_iterator |
auto | operator+= (difference_type n) -> Transform_iterator & |
auto | operator+ (difference_type n) -> Transform_iterator |
auto | operator-- () -> Transform_iterator & |
auto | operator-- (int) -> Transform_iterator |
auto | operator-= (difference_type n) -> Transform_iterator & |
auto | operator- (Transform_iterator const &other) -> difference_type |
auto | operator- (difference_type n) -> Transform_iterator |
auto | operator* () const -> reference |
auto | operator== (Transform_iterator const &other) const -> bool |
auto | operator!= (Transform_iterator const &other) const -> bool |
template<typename T > | |
auto | operator== (T const &other) const -> bool |
template<typename T > | |
auto | operator!= (T const &other) const -> bool |
auto | underlying () const -> Iter |
Friends | |
auto | operator+ (difference_type n, Transform_iterator const &it) -> Transform_iterator |
operator*() will apply map
to the result of the underlying deref result.
Should work both as a const_iterator and non-const iterator, depending on the type of iterator given at construction, and if the map_fn works in both const and non-const conditions.