description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: is_nothrow_constructible Class |
is_nothrow_constructible Class |
11/04/2016 |
|
|
8be3f927-283e-4d67-95a5-8bf5dc4e7a3d |
Tests whether a type is constructible and is known not to throw when the specified argument types are used.
template <class T, class... Args>
struct is_nothrow_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, and the constructor is known by the compiler not to throw; 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