Skip to main content

class transform_iterator

Declaration

template <typename Iterator, typename TransformFn>
class transform_iterator { /* full declaration omitted */ };

Template Parameters

Iterator
TransformFn

Member Variables

Iterator m_it
TransformFn m_fn

Member Aliases

  • using difference_type = typename std::iterator_traits< Iterator>::difference_type;
  • using iterator_category = std::forward_iterator_tag;
  • using pointer = value_type*;
  • using reference = value_type;
  • using value_type = decltype(std::declval< TransformFn>()( std::declval<typename std::iterator_traits< Iterator>::reference>()));

Member Function Overview

Member Functions

bool operator!=(
    const transform_iterator<Iterator,
                             TransformFn>& rhs)

Parameters

const transform_iterator<Iterator, TransformFn>& rhs

reference operator*()


transform_iterator<Iterator, TransformFn>&
operator++()


reference operator->()


transform_iterator(Iterator it, TransformFn fn)

Parameters

Iterator it
TransformFn fn