File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 25622562Together, zero-initialization and constant initialization are called \defn {static
25632563initialization}; all other initialization is \defn {dynamic initialization}. Static
25642564initialization shall be performed before any dynamic initialization takes place. Dynamic
2565- initialization of a non-local variable with static storage duration is either ordered or
2566- unordered. Definitions of explicitly specialized class template static data members have
2567- ordered initialization. Other class template static data members (i.e., implicitly or
2568- explicitly instantiated specializations) have unordered initialization. Other non-local
2569- variables with static storage duration have ordered initialization. Variables with ordered
2565+ initialization of a non-local variable with static storage duration is
2566+ \defn { unordered} if the variable is an implicitly or explicitly instantiated
2567+ specialization, and otherwise is \defn {ordered} \enternote an explicitly
2568+ specialized static data member or variable template specialization has
2569+ ordered initialization. \exitnote Variables with ordered
25702570initialization defined within a single translation unit shall be initialized in the order of
25712571their definitions in the translation unit. If a program starts a thread~(\ref {thread.threads }),
25722572the subsequent initialization of a variable is unsequenced with respect to the initialization
You can’t perform that action at this time.
0 commit comments