diff --git a/doc/iterator_adaptor.html b/doc/iterator_adaptor.html index 78885df..62e516a 100644 --- a/doc/iterator_adaptor.html +++ b/doc/iterator_adaptor.html @@ -348,17 +348,19 @@ to who-knows-where? The most we can do with that incremented position is to compare another node_base* to it. In other words, the original iterator traverses a one-element array.
-You probably didn't think of it that way, but the node_base* +
You probably didn't think of it this way, but the node_base* object which underlies node_iterator is itself an iterator, just like all other pointers. If we examine that pointer closely from an iterator perspective, we can see that it has much in common with the node_iterator we're building. First, they share most of the same associated types (value_type, reference, -pointer, and difference_type). Second, even much of the +pointer, and difference_type). Second, even some of the core functionality is the same: operator* and operator== on -the node_iterator just return the result of invoking the same +the node_iterator return the result of invoking the same operations on the underlying pointer, via the node_iterator's -dereference and equal member functions)
+dereference and equal member functions). However, the operator++ for +node_iterator behaves differently than for node_base* +since it follows the m_next pointer.It turns out that the pattern of building an iterator on another iterator-like type (the Base 1 type) while modifying just a few aspects of the underlying type's behavior is an @@ -430,13 +432,15 @@ std::iterator_traits<Iterator>::some-associated-type reverse_iterator and the other Boost specialized iterator adaptors to get an idea of the sorts of things you can do with iterator_adaptor. In particular, have a look at -counting_iterator, which demonstrates that iterator_adaptor's Base type needn't be an iterator.
+transform_iterator, which is perhaps the most straightforward +adaptor, and also counting_iterator, which demonstrates that +iterator_adaptor's Base type needn't be an iterator.