tmp/tmp1_gky8ry/{from.md → to.md}
RENAMED
|
@@ -15,14 +15,15 @@ temporary variable `t`, with the result being the value of `t` as a
|
|
| 15 |
prvalue.
|
| 16 |
|
| 17 |
The expression `T()`, where `T` is a *simple-type-specifier* or
|
| 18 |
*typename-specifier* for a non-array complete object type or the
|
| 19 |
(possibly cv-qualified) `void` type, creates a prvalue of the specified
|
| 20 |
-
type,
|
| 21 |
-
|
| 22 |
-
cv-qualified, the *cv-qualifier*s are
|
| 23 |
-
of the resulting prvalue
|
|
|
|
| 24 |
|
| 25 |
Similarly, a *simple-type-specifier* or *typename-specifier* followed by
|
| 26 |
a *braced-init-list* creates a temporary object of the specified type
|
| 27 |
direct-list-initialized ([[dcl.init.list]]) with the specified
|
| 28 |
*braced-init-list*, and its value is that temporary object as a prvalue.
|
|
|
|
| 15 |
prvalue.
|
| 16 |
|
| 17 |
The expression `T()`, where `T` is a *simple-type-specifier* or
|
| 18 |
*typename-specifier* for a non-array complete object type or the
|
| 19 |
(possibly cv-qualified) `void` type, creates a prvalue of the specified
|
| 20 |
+
type, whose value is that produced by value-initializing ([[dcl.init]])
|
| 21 |
+
an object of type `T`; no initialization is done for the `void()` case.
|
| 22 |
+
if `T` is a non-class type that is cv-qualified, the *cv-qualifier*s are
|
| 23 |
+
discarded when determining the type of the resulting prvalue (Clause
|
| 24 |
+
[[expr]]).
|
| 25 |
|
| 26 |
Similarly, a *simple-type-specifier* or *typename-specifier* followed by
|
| 27 |
a *braced-init-list* creates a temporary object of the specified type
|
| 28 |
direct-list-initialized ([[dcl.init.list]]) with the specified
|
| 29 |
*braced-init-list*, and its value is that temporary object as a prvalue.
|