std::constructible_from
Определено в заголовке <concepts> | ||
|---|---|---|
template< class T, class... Args >
concept constructible_from =
std::destructible<T> && std::is_constructible_v<T, Args...>;
| (с C++20) |
Концепция constructible_from определяет, что переменную типа T можно инициализировать с заданным набором типов аргументов Args....
См. также
|
(C++11)(C++11)(C++11) | проверяет, имеет ли тип конструктор для определённых аргументов (шаблон класса) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/concepts/constructible_from