mirror of
https://github.com/boostorg/iterator.git
synced 2025-07-23 01:17:16 +02:00
Finished iterator_adaptor tutorial
Added example test code Rolled forward old counting_iterator abstract for boost docs. [SVN r21649]
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user