From Jason Turner

[container.rev.reqmts]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpfn8w1jkr/{from.md → to.md} +62 -0
tmp/tmpfn8w1jkr/{from.md → to.md} RENAMED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Reversible container requirements <a id="container.rev.reqmts">[[container.rev.reqmts]]</a>
2
+
3
+ A type `X` meets the *reversible container* requirements if `X` meets
4
+ the container requirements, the iterator type of `X` belongs to the
5
+ bidirectional or random access iterator categories
6
+ [[iterator.requirements]], and the following types and expressions are
7
+ well-formed and have the specified semantics.
8
+
9
+ ``` cpp
10
+ typename X::reverse_iterator
11
+ ```
12
+
13
+ *Result:* The type `reverse_iterator<X::iterator>`, an iterator type
14
+ whose value type is `T`.
15
+
16
+ ``` cpp
17
+ typename X::const_reverse_iterator
18
+ ```
19
+
20
+ *Result:* The type `reverse_iterator<X::const_iterator>`, a constant
21
+ iterator type whose value type is `T`.
22
+
23
+ ``` cpp
24
+ a.rbegin()
25
+ ```
26
+
27
+ *Result:* `reverse_iterator`; `const_reverse_iterator` for constant `a`.
28
+
29
+ *Returns:* `reverse_iterator(end())`
30
+
31
+ *Complexity:* Constant.
32
+
33
+ ``` cpp
34
+ a.rend()
35
+ ```
36
+
37
+ *Result:* `reverse_iterator`; `const_reverse_iterator` for constant `a`.
38
+
39
+ *Returns:* `reverse_iterator(begin())`
40
+
41
+ *Complexity:* Constant.
42
+
43
+ ``` cpp
44
+ a.crbegin()
45
+ ```
46
+
47
+ *Result:* `const_reverse_iterator`.
48
+
49
+ *Returns:* `const_cast<X const&>(a).rbegin()`
50
+
51
+ *Complexity:* Constant.
52
+
53
+ ``` cpp
54
+ a.crend()
55
+ ```
56
+
57
+ *Result:* `const_reverse_iterator`.
58
+
59
+ *Returns:* `const_cast<X const&>(a).rend()`
60
+
61
+ *Complexity:* Constant.
62
+