tmp/tmpqckdgwd9/{from.md → to.md}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
| 1 |
-
### Static storage duration <a id="basic.stc.static">[[basic.stc.static]]</a>
|
| 2 |
|
| 3 |
All variables which do not have dynamic storage duration, do not have
|
| 4 |
thread storage duration, and are not local have *static storage
|
| 5 |
-
duration*. The storage for these entities
|
| 6 |
-
|
| 7 |
|
| 8 |
If a variable with static storage duration has initialization or a
|
| 9 |
destructor with side effects, it shall not be eliminated even if it
|
| 10 |
appears to be unused, except that a class object or its copy/move may be
|
| 11 |
-
eliminated as specified in [[class.copy]].
|
| 12 |
|
| 13 |
The keyword `static` can be used to declare a local variable with static
|
| 14 |
storage duration.
|
| 15 |
|
| 16 |
[*Note 1*: [[stmt.dcl]] describes the initialization of local `static`
|
|
|
|
| 1 |
+
#### Static storage duration <a id="basic.stc.static">[[basic.stc.static]]</a>
|
| 2 |
|
| 3 |
All variables which do not have dynamic storage duration, do not have
|
| 4 |
thread storage duration, and are not local have *static storage
|
| 5 |
+
duration*. The storage for these entities lasts for the duration of the
|
| 6 |
+
program ([[basic.start.static]], [[basic.start.term]]).
|
| 7 |
|
| 8 |
If a variable with static storage duration has initialization or a
|
| 9 |
destructor with side effects, it shall not be eliminated even if it
|
| 10 |
appears to be unused, except that a class object or its copy/move may be
|
| 11 |
+
eliminated as specified in [[class.copy.elision]].
|
| 12 |
|
| 13 |
The keyword `static` can be used to declare a local variable with static
|
| 14 |
storage duration.
|
| 15 |
|
| 16 |
[*Note 1*: [[stmt.dcl]] describes the initialization of local `static`
|