Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1010 Bytes

is-trivially-copyable-class.md

File metadata and controls

37 lines (25 loc) · 1010 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: is_trivially_copyable Class
is_trivially_copyable Class
11/04/2016
type_traits/std::is_trivially_copyable
is_trivially_copyable
89a53bf8-036c-4108-91e1-fe34adbde8b3

is_trivially_copyable Class

Tests whether the type is a trivially copyable type.

Syntax

template <class T>
struct is_trivially_copyable;

Parameters

T
The type to query.

Remarks

An instance of the type predicate holds true if the type T is a trivially copyable type, otherwise it holds false. Trivially copyable types have no non-trivial copy operations, move operations, or destructors. Generally, a copy operation is considered trivial if it can be implemented as a bitwise copy. Both built-in types and arrays of trivially copyable types are trivially copyable.

Requirements

Header: <type_traits>

Namespace: std

See also

<type_traits>