W3cubDocs

/C++

std::DefaultConstructible

Defined in header <concepts>
template < class T >
concept DefaultConstructible = std::Constructible<T>;
(since C++20)

The DefaultConstructible concept provides a shorthand for the common case when the question is whether a type can be constructed with no arguments.

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.
http://en.cppreference.com/w/cpp/concepts/DefaultConstructible