tmp/tmp0iug0b2q/{from.md → to.md}
RENAMED
|
@@ -6,29 +6,21 @@ The name `ranges::rbegin` denotes a customization point object
|
|
| 6 |
Given a subexpression `E` with type `T`, let `t` be an lvalue that
|
| 7 |
denotes the reified object for `E`. Then:
|
| 8 |
|
| 9 |
- If `E` is an rvalue and `enable_borrowed_range<remove_cv_t<T>>` is
|
| 10 |
`false`, `ranges::rbegin(E)` is ill-formed.
|
| 11 |
-
- Otherwise, if `T` is an array type [[
|
| 12 |
`remove_all_extents_t<T>` is an incomplete type, `ranges::rbegin(E)`
|
| 13 |
is ill-formed with no diagnostic required.
|
| 14 |
-
- Otherwise, if `
|
| 15 |
-
|
| 16 |
-
expression-equivalent to `
|
| 17 |
-
- Otherwise, if `T` is a class or enumeration type and
|
| 18 |
-
|
| 19 |
-
`
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
``` cpp
|
| 23 |
-
void rbegin(auto&) = delete;
|
| 24 |
-
void rbegin(const auto&) = delete;
|
| 25 |
-
```
|
| 26 |
-
|
| 27 |
-
then `ranges::rbegin(E)` is expression-equivalent to
|
| 28 |
-
`decay-copy(rbegin(t))` with overload resolution performed in the
|
| 29 |
-
above context.
|
| 30 |
- Otherwise, if both `ranges::begin(t)` and `ranges::end(t)` are valid
|
| 31 |
expressions of the same type which models `bidirectional_iterator`
|
| 32 |
[[iterator.concept.bidir]], `ranges::rbegin(E)` is
|
| 33 |
expression-equivalent to `make_reverse_iterator(ranges::end(t))`.
|
| 34 |
- Otherwise, `ranges::rbegin(E)` is ill-formed.
|
|
|
|
| 6 |
Given a subexpression `E` with type `T`, let `t` be an lvalue that
|
| 7 |
denotes the reified object for `E`. Then:
|
| 8 |
|
| 9 |
- If `E` is an rvalue and `enable_borrowed_range<remove_cv_t<T>>` is
|
| 10 |
`false`, `ranges::rbegin(E)` is ill-formed.
|
| 11 |
+
- Otherwise, if `T` is an array type [[term.array.type]] and
|
| 12 |
`remove_all_extents_t<T>` is an incomplete type, `ranges::rbegin(E)`
|
| 13 |
is ill-formed with no diagnostic required.
|
| 14 |
+
- Otherwise, if `auto(t.rbegin())` is a valid expression whose type
|
| 15 |
+
models `input_or_output_iterator`, `ranges::rbegin(E)` is
|
| 16 |
+
expression-equivalent to `auto(t.rbegin())`.
|
| 17 |
+
- Otherwise, if `T` is a class or enumeration type and `auto(rbegin(t))`
|
| 18 |
+
is a valid expression whose type models `input_or_output_iterator`
|
| 19 |
+
where the meaning of `rbegin` is established as-if by performing
|
| 20 |
+
argument-dependent lookup only [[basic.lookup.argdep]], then
|
| 21 |
+
`ranges::rbegin(E)` is expression-equivalent to that expression.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
- Otherwise, if both `ranges::begin(t)` and `ranges::end(t)` are valid
|
| 23 |
expressions of the same type which models `bidirectional_iterator`
|
| 24 |
[[iterator.concept.bidir]], `ranges::rbegin(E)` is
|
| 25 |
expression-equivalent to `make_reverse_iterator(ranges::end(t))`.
|
| 26 |
- Otherwise, `ranges::rbegin(E)` is ill-formed.
|