Defined in header <concepts> | ||
---|---|---|
template < class T, class... Args > concept Constructible = std::Destructible<T> && std::is_constructible_v<T, Args...>; | (since C++20) |
The Constructible
concept specifies that a variable of type T
can be initialized with the given set of argument types Args...
.
(C++11)(C++11)(C++11) | checks if a type has a constructor for specific arguments (class template) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/concepts/Constructible