From 6085e03da0a56b8b6b55940af884dde7e6329e3f Mon Sep 17 00:00:00 2001
From: Jeremy Siek 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.
counting_iterator requirements
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