]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/iterator/doc/ForwardTraversal.rst
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / iterator / doc / ForwardTraversal.rst
1 .. Copyright David Abrahams 2006. Distributed under the Boost
2 .. Software License, Version 1.0. (See accompanying
3 .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4
5 Forward Traversal Concept
6 .........................
7
8 A class or built-in type ``X`` models the *Forward Traversal*
9 concept if, in addition to ``X`` meeting the requirements of Default
10 Constructible and Single Pass Iterator, the following expressions are
11 valid and respect the stated semantics.
12
13 +--------------------------------------------------------------------------------------------------------+
14 |Forward Traversal Iterator Requirements (in addition to Default Constructible and Single Pass Iterator) |
15 +---------------------------------------+-----------------------------------+----------------------------+
16 |Expression |Return Type |Assertion/Note |
17 +=======================================+===================================+============================+
18 |``X u;`` |``X&`` |note: ``u`` may have a |
19 | | |singular value. |
20 +---------------------------------------+-----------------------------------+----------------------------+
21 |``++r`` |``X&`` |``r == s`` and ``r`` is |
22 | | |dereferenceable implies |
23 | | |``++r == ++s.`` |
24 +---------------------------------------+-----------------------------------+----------------------------+
25 |``iterator_traits<X>::difference_type``|A signed integral type representing| |
26 | |the distance between iterators | |
27 | | | |
28 +---------------------------------------+-----------------------------------+----------------------------+
29 |``iterator_traversal<X>::type`` |Convertible to | |
30 | |``forward_traversal_tag`` | |
31 +---------------------------------------+-----------------------------------+----------------------------+