std::default_initializable - cppreference.com (original) (raw)

| | | | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ------------- | | template< class T > concept default_initializable = std::constructible_from<T> && requires { T{}; } && /* T t; is well-formed, see below */; | | (since C++20) |

The default_initializable concept checks whether variables of type T can be

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.

[edit] Possible implementation

[edit] References

[edit] See also