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:
Jeremy Siek
2004-01-13 18:17:27 +00:00
parent c6a5b7c292
commit ea3baba376
3 changed files with 23 additions and 45 deletions

View File

@ -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``.