std::DefaultConstructible (3) - Linux Man Pages

std::DefaultConstructible: std::DefaultConstructible

NAME

std::DefaultConstructible - std::DefaultConstructible

Synopsis


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


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


Constructible specifies that a variable of the type can be constructed from or bound to a set of argument types
                                   (concept)
(C++20)


is_default_constructible
is_trivially_default_constructible
is_nothrow_default_constructible checks if a type has a default constructor
                                   (class template)
(C++11)
(C++11)
(C++11)