tmp/tmpskwpybv5/{from.md → to.md}
RENAMED
|
@@ -6,19 +6,19 @@ The name `ranges::data` 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::data(E)` is ill-formed.
|
| 11 |
-
- Otherwise, if `T` is an array type [[
|
| 12 |
`remove_all_extents_t<T>` is an incomplete type, `ranges::data(E)` is
|
| 13 |
ill-formed with no diagnostic required.
|
| 14 |
-
- Otherwise, if `
|
| 15 |
-
|
| 16 |
-
`
|
| 17 |
- Otherwise, if `ranges::begin(t)` is a valid expression whose type
|
| 18 |
models `contiguous_iterator`, `ranges::data(E)` is
|
| 19 |
-
expression-equivalent to `to_address(ranges::begin(
|
| 20 |
- Otherwise, `ranges::data(E)` is ill-formed.
|
| 21 |
|
| 22 |
[*Note 1*: Diagnosable ill-formed cases above result in substitution
|
| 23 |
failure when `ranges::data(E)` appears in the immediate context of a
|
| 24 |
template instantiation. — *end note*]
|
|
|
|
| 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::data(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::data(E)` is
|
| 13 |
ill-formed with no diagnostic required.
|
| 14 |
+
- Otherwise, if `auto(t.data())` is a valid expression of pointer to
|
| 15 |
+
object type, `ranges::data(E)` is expression-equivalent to
|
| 16 |
+
`auto(t.data())`.
|
| 17 |
- Otherwise, if `ranges::begin(t)` is a valid expression whose type
|
| 18 |
models `contiguous_iterator`, `ranges::data(E)` is
|
| 19 |
+
expression-equivalent to `to_address(ranges::begin(t))`.
|
| 20 |
- Otherwise, `ranges::data(E)` is ill-formed.
|
| 21 |
|
| 22 |
[*Note 1*: Diagnosable ill-formed cases above result in substitution
|
| 23 |
failure when `ranges::data(E)` appears in the immediate context of a
|
| 24 |
template instantiation. — *end note*]
|