tmp/tmp1mfvghbd/{from.md → to.md}
RENAMED
|
@@ -28,12 +28,12 @@ complex f = 3; // initialized by calling complex(double) with a
|
|
| 28 |
complex g = { 1, 2 }; // initialized by calling complex(double, double) with arguments 1 and 2
|
| 29 |
```
|
| 30 |
|
| 31 |
— *end example*]
|
| 32 |
|
| 33 |
-
[*Note 1*: Overloading of the assignment operator [[over.
|
| 34 |
-
effect on initialization. — *end note*]
|
| 35 |
|
| 36 |
An object of class type can also be initialized by a *braced-init-list*.
|
| 37 |
List-initialization semantics apply; see [[dcl.init]] and
|
| 38 |
[[dcl.init.list]].
|
| 39 |
|
|
@@ -64,13 +64,13 @@ Here, `x.i` is initialized with 99, `x.f` is initialized with 88.8, and
|
|
| 64 |
[*Note 2*: Braces can be elided in the *initializer-list* for any
|
| 65 |
aggregate, even if the aggregate has members of a class type with
|
| 66 |
user-defined type conversions; see [[dcl.init.aggr]]. — *end note*]
|
| 67 |
|
| 68 |
[*Note 3*: If `T` is a class type with no default constructor, any
|
| 69 |
-
declaration of an object of type `T` (or array thereof) is
|
| 70 |
-
no *initializer* is explicitly specified (see
|
| 71 |
-
[[dcl.init]]). — *end note*]
|
| 72 |
|
| 73 |
[*Note 4*: The order in which objects with static or thread storage
|
| 74 |
duration are initialized is described in [[basic.start.dynamic]] and
|
| 75 |
[[stmt.dcl]]. — *end note*]
|
| 76 |
|
|
|
|
| 28 |
complex g = { 1, 2 }; // initialized by calling complex(double, double) with arguments 1 and 2
|
| 29 |
```
|
| 30 |
|
| 31 |
— *end example*]
|
| 32 |
|
| 33 |
+
[*Note 1*: Overloading of the assignment operator [[over.assign]] has
|
| 34 |
+
no effect on initialization. — *end note*]
|
| 35 |
|
| 36 |
An object of class type can also be initialized by a *braced-init-list*.
|
| 37 |
List-initialization semantics apply; see [[dcl.init]] and
|
| 38 |
[[dcl.init.list]].
|
| 39 |
|
|
|
|
| 64 |
[*Note 2*: Braces can be elided in the *initializer-list* for any
|
| 65 |
aggregate, even if the aggregate has members of a class type with
|
| 66 |
user-defined type conversions; see [[dcl.init.aggr]]. — *end note*]
|
| 67 |
|
| 68 |
[*Note 3*: If `T` is a class type with no default constructor, any
|
| 69 |
+
initializing declaration of an object of type `T` (or array thereof) is
|
| 70 |
+
ill-formed if no *initializer* is explicitly specified (see
|
| 71 |
+
[[class.init]] and [[dcl.init]]). — *end note*]
|
| 72 |
|
| 73 |
[*Note 4*: The order in which objects with static or thread storage
|
| 74 |
duration are initialized is described in [[basic.start.dynamic]] and
|
| 75 |
[[stmt.dcl]]. — *end note*]
|
| 76 |
|