| title | is_constructible Class | |
|---|---|---|
| ms.date | 11/04/2016 | |
| f1_keywords |
|
|
| helpviewer_keywords |
|
|
| ms.assetid | 7cdec5ff-73cf-4f78-a9db-ced2e9c0fd7f |
Tests whether a type is constructible when the specified argument types are used.
template <class T, class... Args>
struct is_constructible;T
The type to query.
Args
The argument types to match in a constructor of T.
An instance of the type predicate holds true if the type T is constructible by using the argument types in Args, otherwise it holds false. Type T is constructible if the variable definition T t(std::declval<Args>()...); is well-formed. Both T and all the types in Args must be complete types, void, or arrays of unknown bound.
Header: <type_traits>
Namespace: std