From Jason Turner

[basic.stc.general]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpzq7jxvzc/{from.md → to.md} +10 -10
tmp/tmpzq7jxvzc/{from.md → to.md} RENAMED
@@ -8,20 +8,20 @@ object and is one of the following:
8
  - static storage duration
9
  - thread storage duration
10
  - automatic storage duration
11
  - dynamic storage duration
12
 
 
 
 
 
13
  Static, thread, and automatic storage durations are associated with
14
- objects introduced by declarations [[basic.def]] and implicitly created
15
- by the implementation [[class.temporary]]. The dynamic storage duration
16
- is associated with objects created by a *new-expression* [[expr.new]].
 
17
 
18
  The storage duration categories apply to references as well.
19
 
20
- When the end of the duration of a region of storage is reached, the
21
- values of all pointers representing the address of any part of that
22
- region of storage become invalid pointer values [[basic.compound]].
23
- Indirection through an invalid pointer value and passing an invalid
24
- pointer value to a deallocation function have undefined behavior. Any
25
- other use of an invalid pointer value has *implementation-defined*
26
- behavior.[^10]
27
 
 
8
  - static storage duration
9
  - thread storage duration
10
  - automatic storage duration
11
  - dynamic storage duration
12
 
13
+ [*Note 1*: After the duration of a region of storage has ended, the use
14
+ of pointers to that region of storage is limited
15
+ [[basic.compound]]. — *end note*]
16
+
17
  Static, thread, and automatic storage durations are associated with
18
+ objects introduced by declarations [[basic.def]] and with temporary
19
+ objects [[class.temporary]]. The dynamic storage duration is associated
20
+ with objects created by a *new-expression* [[expr.new]] or with
21
+ implicitly created objects [[intro.object]].
22
 
23
  The storage duration categories apply to references as well.
24
 
25
+ The storage duration of subobjects and reference members is that of
26
+ their complete object [[intro.object]].
 
 
 
 
 
27