forked from boostorg/iterator
Finished iterator_adaptor tutorial
Added example test code Rolled forward old counting_iterator abstract for boost docs. [SVN r21649]
This commit is contained in:
@ -14,7 +14,15 @@
|
||||
.. _`Open Systems Lab`: http://www.osl.iu.edu
|
||||
.. _`Institute for Transport Railway Operation and Construction`: http://www.ive.uni-hannover.de
|
||||
|
||||
:abstract:
|
||||
:abstract: How would you fill up a vector with the numbers zero
|
||||
through one hundred using ``std::copy()``? The only iterator
|
||||
operation missing from builtin integer types is an
|
||||
``operator*()`` that returns the current value of the integer.
|
||||
The counting iterator adaptor adds this crucial piece of
|
||||
functionality to whatever type it wraps. One can use the
|
||||
counting iterator adaptor not only with integer types, but with
|
||||
any type that is **Incrementable** (see type requirements
|
||||
below).
|
||||
|
||||
.. include:: counting_iterator_abstract.rst
|
||||
|
||||
|
Reference in New Issue
Block a user