filled out some missing operator--, added a comment about the operations and concepts,

and added some text to the indirect iterator example


[SVN r21629]
This commit is contained in:
Jeremy Siek
2004-01-12 15:53:04 +00:00
parent 0074f50573
commit 4a3fd9984d
18 changed files with 482 additions and 201 deletions

View File

@ -18,11 +18,11 @@
, typename enable_if_convertible<I2, Iterator>::type* = 0 // exposition
, typename enable_if_convertible<F2, UnaryFunction>::type* = 0 // exposition
);
reference operator*() const;
transform_iterator& operator++();
Iterator base() const;
UnaryFunction functor() const;
reference operator*() const;
transform_iterator& operator++();
transform_iterator& operator--();
private:
Iterator m_iterator; // exposition
UnaryFunction m_f; // exposition
@ -66,6 +66,11 @@ The ``value_type`` is ``remove_cv<remove_reference<reference> >::type``.
``transform_iterator`` operations
.................................
In addition to the operations required by the concepts modeled by
``transform_iterator``, ``transform_iterator`` provides the following
operations.
``transform_iterator();``
:Returns: An instance of ``transform_iterator`` with ``m_f``
@ -110,3 +115,9 @@ The ``value_type`` is ``remove_cv<remove_reference<reference> >::type``.
:Effects: ``++m_iterator``
:Returns: ``*this``
``transform_iterator& operator--();``
:Effects: ``--m_iterator``
:Returns: ``*this``