boost::segment_iterator
// In header: <boost/iterator/segment_iterator_fwd.hpp> template<typename It, typename Segmenter> struct segment_iterator { // construct/copy/destruct segment_iterator(); segment_iterator(It, It, It, Segmenter); // public member functions BOOST_CONCEPT_ASSERT((InputIterator< It >)); BOOST_CONCEPT_ASSERT((SegmenterConcept< Segmenter >)); BOOST_CONCEPT_ASSERT((Convertible< typename InputIterator< It >::value_type, typename Segmenter::input_type >)); It base() const; // private member functions iterator_range< It > dereference() const; void increment(); void decrement(); bool equal(const segment_iterator &) const; };
Iterator adapter that wraps a range to make it appear like a range of subranges, each subrange being a step of a Segmenter
invocation.
segment_iterator
public member functionsBOOST_CONCEPT_ASSERT((InputIterator< It >));
BOOST_CONCEPT_ASSERT((SegmenterConcept< Segmenter >));
BOOST_CONCEPT_ASSERT((Convertible< typename InputIterator< It >::value_type, typename Segmenter::input_type >));
It base() const;
segment_iterator
private member functionsiterator_range< It > dereference() const;
void increment();
void decrement();
bool equal(const segment_iterator & other) const;