Finished iterator_adaptor tutorial

Added example test code
Rolled forward old counting_iterator abstract for boost docs.


[SVN r21649]
This commit is contained in:
Dave Abrahams
2004-01-12 20:58:22 +00:00
parent 19dbb5304c
commit 3bf52ec2f2
13 changed files with 488 additions and 138 deletions

View File

@ -212,8 +212,8 @@ Our ``node_iterator`` then becomes::
really concerned with efficiency, we could've written the
default constructor to leave ``m_node`` uninitialized.
Core Operations
...............
Implementing the Core Operations
................................
The last step is to implement the `core operations`_ required by
the concepts we want our iterator to model. Referring to the
@ -475,6 +475,11 @@ In fact, that sort of magic is possible using
follows, we can remove it from the overload set when it's not
appropriate::
#include <boost/type_traits/is_convertible.hpp>
#include <boost/utility/enable_if.hpp>
...
template <class OtherValue>
node_iter(
node_iter<OtherValue> const& other