diff --git a/doc/counting_iterator.html b/doc/counting_iterator.html index c7debc3..0e9af8f 100644 --- a/doc/counting_iterator.html +++ b/doc/counting_iterator.html @@ -45,12 +45,15 @@ adding an operator* that retur
template < class Incrementable @@ -64,8 +67,11 @@ class counting_iterator counting_iterator(counting_iterator const& rhs); explicit counting_iterator(Incrementable x); Incrementable base() const; + reference operator*() const; + counting_iterator& operator++(); + counting_iterator& operator--(); private: - Incrementable current; // exposition + Incrementable m_inc; // exposition };
The Incrementable type must be Default Constructible, Copy Constructible, and Assignable. The default distance is an implementation defined signed integral type.
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:
@@ -105,7 +112,10 @@ i < jIn addition to the operations required by the concepts modeled by +counting_iterator, counting_iterator provides the following +operations.
counting_iterator();
Returns: | An instance of counting_iterator with current + |
---|---|
Returns: | An instance of counting_iterator with m_inc constructed from x. |
Returns: | current | +
Returns: | m_inc |
counting_iterator& operator--();
+Effects: | --m_inc | +
---|---|
Returns: | *this |