diff --git a/doc/counting_iterator.html b/doc/counting_iterator.html index 731a220..75add53 100644 --- a/doc/counting_iterator.html +++ b/doc/counting_iterator.html @@ -63,6 +63,12 @@ template < class counting_iterator { public: + typedef Incrementable value_type; + typedef const Incrementable& reference; + typedef const Incrementable* pointer; + typedef /* see below */ difference_type; + typedef /* see below */ iterator_category; + counting_iterator(); counting_iterator(counting_iterator const& rhs); explicit counting_iterator(Incrementable x); @@ -74,6 +80,12 @@ class counting_iterator Incrementable m_inc; // exposition }; +
If the Diference argument is use_default then the +difference_type member is an implementation defined signed +integral type.
+The member iterator_category is a type that satisfies the +requirements of the concepts modeled by the counting_iterator as +specified in the models section.
The Incrementable type must be Default Constructible, Copy -Constructible, and Assignable. The default distance is -an implementation defined signed integral type.
+Constructible, and Assignable.counting_iterator models Readable Lvalue Iterator.
-Furthermore, if you wish to create a counting iterator that is a Forward -Traversal Iterator, then the following expressions must be valid:
+Furthermore, if you wish to create a counting iterator that is a +Forward Traversal Iterator and also Forward Iterator, then the +following expressions must be valid:
Incrementable i, j; ++i // pre-increment i == j // operator equal-
If you wish to create a counting iterator that is a -Bidirectional Traversal Iterator, then pre-decrement is also required:
+If you wish to create a counting iterator that is a Bidirectional +Traversal Iterator and also Bidirectional Iterator, then pre-decrement +is also required:
--i
If you wish to create a counting iterator that is a Random Access -Traversal Iterator, then these additional expressions are also -required:
+Traversal Iterator and also Random Access Iterator, then these +additional expressions are also required:counting_iterator::difference_type n; i += n @@ -235,7 +248,7 @@ indirectly printing out the numbers from 0 to 7