Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.15 KB

is-trivially-constructible-class.md

File metadata and controls

40 lines (27 loc) · 1.15 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: is_trivially_constructible Class
is_trivially_constructible Class
11/04/2016
type_traits/std::is_trivially_constructible
is_trivially_constructible
3fa918c1-e66f-4d0e-a11b-be1fb2c02e7b

is_trivially_constructible Class

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

Syntax

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.

Remarks

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.

Requirements

Header: <type_traits>

Namespace: std

See also

<type_traits>