is_trivially_constructible Class

Visual Studio 2015
 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at is_trivially_constructible Class.

Tests whether a type is trivially constructible when the specified argument types are used.

template <class T, class... Args>  
struct is_trivially_constructible;

Parameters

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 trivially constructible by using the argument types in Args, otherwise it holds false. Type T is trivially constructible if the variable definition T t(std::declval<Args>()...); is well-formed and is known to call no non-trivial operations. Both T and all the types in Args must be complete types, void, or arrays of unknown bound.

Header: <type_traits>

Namespace: std

<type_traits>

Show: