tmp/tmpj1fzldl8/{from.md → to.md}
RENAMED
|
@@ -1,21 +1,20 @@
|
|
| 1 |
-
### Explicit type conversion (functional notation) <a id="expr.type.conv">[[expr.type.conv]]</a>
|
| 2 |
|
| 3 |
-
A *simple-type-specifier*
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
this section.
|
| 11 |
|
| 12 |
If the initializer is a parenthesized single expression, the type
|
| 13 |
-
conversion expression is equivalent
|
| 14 |
-
|
| 15 |
-
|
| 16 |
prvalue of the specified type that performs no initialization.
|
| 17 |
Otherwise, the expression is a prvalue of the specified type whose
|
| 18 |
-
result object is direct-initialized
|
| 19 |
-
|
| 20 |
-
array type.
|
| 21 |
|
|
|
|
| 1 |
+
#### Explicit type conversion (functional notation) <a id="expr.type.conv">[[expr.type.conv]]</a>
|
| 2 |
|
| 3 |
+
A *simple-type-specifier* [[dcl.type.simple]] or *typename-specifier*
|
| 4 |
+
[[temp.res]] followed by a parenthesized optional *expression-list* or
|
| 5 |
+
by a *braced-init-list* (the initializer) constructs a value of the
|
| 6 |
+
specified type given the initializer. If the type is a placeholder for a
|
| 7 |
+
deduced class type, it is replaced by the return type of the function
|
| 8 |
+
selected by overload resolution for class template deduction
|
| 9 |
+
[[over.match.class.deduct]] for the remainder of this subclause.
|
|
|
|
| 10 |
|
| 11 |
If the initializer is a parenthesized single expression, the type
|
| 12 |
+
conversion expression is equivalent to the corresponding cast expression
|
| 13 |
+
[[expr.cast]]. Otherwise, if the type is cv `void` and the initializer
|
| 14 |
+
is `()` or `{}` (after pack expansion, if any), the expression is a
|
| 15 |
prvalue of the specified type that performs no initialization.
|
| 16 |
Otherwise, the expression is a prvalue of the specified type whose
|
| 17 |
+
result object is direct-initialized [[dcl.init]] with the initializer.
|
| 18 |
+
If the initializer is a parenthesized optional *expression-list*, the
|
| 19 |
+
specified type shall not be an array type.
|
| 20 |
|