tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
etl::default_initializable Concept Reference

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. More...

#include <default_initializable.hpp>

Concept definition

template<typename T>
requires { T {}; } &&
requires { ::new (static_cast<void*>(nullptr)) T; }
The constructible_from concept specifies that a variable of type T can be initialized with the given ...
Definition constructible_from.hpp:15
The default_initializable concept checks whether variables of type T can be value-initialized (T() is...
Definition default_initializable.hpp:20

Detailed Description

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.