mirror of
https://github.com/boostorg/iterator.git
synced 2025-07-29 20:37:17 +02:00
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:
@ -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``
|
||||
|
||||
|
Reference in New Issue
Block a user