tmp/tmpe6lgyacb/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Element access <a id="reverse.iter.elem">[[reverse.iter.elem]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
constexpr reference operator*() const;
|
| 5 |
+
```
|
| 6 |
+
|
| 7 |
+
*Effects:* As if by:
|
| 8 |
+
|
| 9 |
+
``` cpp
|
| 10 |
+
Iterator tmp = current;
|
| 11 |
+
return *--tmp;
|
| 12 |
+
```
|
| 13 |
+
|
| 14 |
+
``` cpp
|
| 15 |
+
constexpr pointer operator->() const
|
| 16 |
+
requires (is_pointer_v<Iterator> ||
|
| 17 |
+
requires (const Iterator i) { i.operator->(); });
|
| 18 |
+
```
|
| 19 |
+
|
| 20 |
+
*Effects:*
|
| 21 |
+
|
| 22 |
+
- If `Iterator` is a pointer type, equivalent to:
|
| 23 |
+
`return prev(current);`
|
| 24 |
+
- Otherwise, equivalent to: `return prev(current).operator->();`
|
| 25 |
+
|
| 26 |
+
``` cpp
|
| 27 |
+
constexpr unspecified operator[](difference_type n) const;
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
*Returns:* `current[-n-1]`.
|
| 31 |
+
|