C++ concepts: DefaultConstructible

From cppreference.com
< cpp‎ | concept
 
 
 

Specifies that an instance of the type can be default constructed.

[edit] Requirements

The type T satisfies DefaultConstructible if

Given

  • u, an arbitrary identifier

The following expressions must be valid and have their specified effects

Expression Post-conditions
T u The object u is default-initialized
T u{} The object u is value-initialized.
T()

T{}

A temporary object of type T is value-initialized.

[edit] See also

checks if a type has a default constructor
(class template)