is_trivially_copy_constructible Class

Tests if the type has a trivial copy constructor.

Syntax

template <class T>
struct is_trivially_copy_constructible;

Parameters

T
The type to query.

Remarks

An instance of the type predicate holds true if the type T is a class that has a trivial copy constructor, otherwise it holds false.

A copy constructor for a class T is trivial if it is implicitly declared, the class T has no virtual functions or virtual bases, all the direct bases of class T have trivial copy constructors, the classes of all the non-static data members of class type have trivial copy constructors, and the classes of all the non-static data members of type array of class have trivial copy constructors.

Requirements

Header: <type_traits>

Namespace: std

See also

<type_traits>