Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>From § 8.5 </p> <blockquote> <p>If no initializer is specified for an object, the object is default-initialized; if no initialization is performed, an object with automatic or dynamic storage duration has indeterminate value. [ Note: objects with static or thread storage duration are zero-initialized, see 3.6.2. —end note ]</p> </blockquote> <p><strong>Update for future references</strong>: Further the meaning of default initialized is defined as</p> <blockquote> <p>To default-initialize an object of type T means:<br/> — <em>if T is a (possibly cv-qualified) class type (Clause 9), the default constructor for T is called (and the initialization is ill-formed if T has no accessible default constructor)</em>;<br/> — if T is an array type, each element is default-initialized;<br/> — otherwise, no initialization is performed.<br/> If a program calls for the default initialization of an object of a const-qualified type T, T shall be a class type with a user-provided default constructor.<br/><br/></p> </blockquote> <p>Further it varies from value initialized referring this:-</p> <blockquote> <p>To value-initialize an object of type T means:<br/> — if T is a (possibly cv-qualified) class type (Clause 9) with a user-provided constructor (12.1), then the default constructor for T is called (and the initialization is ill-formed if T has no accessible default constructor);<br/> — if T is a (possibly cv-qualified) non-union class type without a user-provided constructor, then the object is zero-initialized and, if T’s implicitly-declared default constructor is non-trivial, that constructor is called.<br/> — if T is an array type, then each element is value-initialized;<br/> — otherwise, the object is zero-initialized.<br/></p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload