tmp/tmp_310wwgo/{from.md → to.md}
RENAMED
|
@@ -1,16 +1,15 @@
|
|
| 1 |
### Automatic storage duration <a id="basic.stc.auto">[[basic.stc.auto]]</a>
|
| 2 |
|
| 3 |
-
Block-scope variables explicitly declared `
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
created exits.
|
| 7 |
|
| 8 |
-
These variables are initialized and destroyed as described
|
| 9 |
-
[[stmt.dcl]].
|
| 10 |
|
| 11 |
If a variable with automatic storage duration has initialization or a
|
| 12 |
-
destructor with side effects,
|
| 13 |
-
of its block
|
| 14 |
-
appears to be unused, except that a class object or its copy/move may
|
| 15 |
-
eliminated as specified in [[class.copy]].
|
| 16 |
|
|
|
|
| 1 |
### Automatic storage duration <a id="basic.stc.auto">[[basic.stc.auto]]</a>
|
| 2 |
|
| 3 |
+
Block-scope variables not explicitly declared `static`, `thread_local`,
|
| 4 |
+
or `extern` have *automatic storage duration*. The storage for these
|
| 5 |
+
entities lasts until the block in which they are created exits.
|
|
|
|
| 6 |
|
| 7 |
+
[*Note 1*: These variables are initialized and destroyed as described
|
| 8 |
+
in [[stmt.dcl]]. — *end note*]
|
| 9 |
|
| 10 |
If a variable with automatic storage duration has initialization or a
|
| 11 |
+
destructor with side effects, an implementation shall not destroy it
|
| 12 |
+
before the end of its block nor eliminate it as an optimization, even if
|
| 13 |
+
it appears to be unused, except that a class object or its copy/move may
|
| 14 |
+
be eliminated as specified in [[class.copy]].
|
| 15 |
|