On this page
std::default_initializable
Defined in header <concepts> |
||
---|---|---|
|
(since C++20) |
The default_initializable
concept checks whether variables of type T
can be
- value-initialized (
T()
is well-formed); - direct-list-initialized from an empty initializer list (
T{}
is well-formed); and - default-initialized (
T t;
is well-formed).
Access checking is performed as if in a context unrelated to T. Only the validity of the immediate context of the variable initialization is considered.
Possible implementation
|
See also
(C++20)
|
specifies that a variable of the type can be constructed from or bound to a set of argument types (concept) |
(C++11)(C++11)(C++11)
|
checks if a type has a default constructor (class template) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/concepts/default_initializable