boost::convert_iterator
// 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; };
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 member functionsBOOST_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;
convert_iterator
private member functionsT dereference() const;
void increment();
void decrement();
bool equal(const convert_iterator & other) const;