PrevUpHomeNext

Struct template convert_iterator

boost::convert_iterator

Synopsis

// In header: <boost/iterator/convert_iterator_fwd.hpp>

template<typename It, typename Converter> 
struct convert_iterator {
  // construct/copy/destruct
  convert_iterator();
  convert_iterator(It, It, It, Converter);

  // public member functions
   BOOST_CONCEPT_ASSERT((InputIterator< It >));
   BOOST_CONCEPT_ASSERT((ConverterConcept< Converter >));
   BOOST_CONCEPT_ASSERT((Convertible< typename InputIterator< It >::value_type, typename Converter::input_type >));
  It base() const;

  // private member functions
  T dereference() const;
  void increment();
  void decrement();
  bool equal(const convert_iterator &) const;
};

Description

Iterator adapter that wraps a range to make it appear like a converted one, by converting it step-by-step as it is advanced.

convert_iterator public construct/copy/destruct

  1. convert_iterator();
  2. convert_iterator(It begin_, It end_, It pos_, Converter p_);

convert_iterator public member functions

  1.  BOOST_CONCEPT_ASSERT((InputIterator< It >));
  2.  BOOST_CONCEPT_ASSERT((ConverterConcept< Converter >));
  3.  BOOST_CONCEPT_ASSERT((Convertible< typename InputIterator< It >::value_type, typename Converter::input_type >));
  4. It base() const;

convert_iterator private member functions

  1. T dereference() const;
  2. void increment();
  3. void decrement();
  4. bool equal(const convert_iterator & other) const;

PrevUpHomeNext