forked from boostorg/iterator
changed the stuff about iterator_category in reverse_iterator to match
the language we decided on for filter_iterator [SVN r21687]
This commit is contained in:
@ -27,21 +27,13 @@
|
||||
};
|
||||
|
||||
|
||||
The ``iterator_category`` member is a type convertible to the iterator
|
||||
tag given by the following algorithm. Let ``T`` be
|
||||
``iterator_traits<Iterator>::value_type``, ``R`` be
|
||||
``iterator_traits<Iterator>::reference``, and ``C`` be
|
||||
``traveral_category<Iterator>::type``.
|
||||
|
||||
::
|
||||
|
||||
if (R is a reference to T) then
|
||||
if (C is convertible to random_access_traversal_tag) then
|
||||
random_access_iterator_tag
|
||||
else
|
||||
bidirectional_iterator_tag
|
||||
else
|
||||
input_iterator_tag
|
||||
If ``Iterator`` models Random Access Traversal Iterator and Readable
|
||||
Lvalue Iterator, then ``iterator_category`` is convertible to
|
||||
``random_access_iterator_tag``. Otherwise, if
|
||||
``Iterator`` models Bidirectional Traversal Iterator and Readable
|
||||
Lvalue Iterator, then ``iterator_category`` is convertible to
|
||||
``bidirectional_iterator_tag``. Otherwise, ``iterator_category`` is
|
||||
convertible to ``input_iterator_tag``.
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user