Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 778 Bytes

is-trivial-class.md

File metadata and controls

37 lines (25 loc) · 778 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: is_trivial Class
is_trivial Class
11/04/2016
type_traits/std::is_trivial
is_trivial
6beb11d4-2f38-4c7e-9959-ca5d26250df7

is_trivial Class

Tests whether the type is a trivial type.

Syntax

template <class T>
struct is_trivial;

Parameters

T
The type to query.

Remarks

An instance of the type predicate holds true if the type T is a trivial type, otherwise it holds false. Trivial types are scalar types, trivially copyable class types, arrays of these types and cv-qualified versions of these types.

Requirements

Header: <type_traits>

Namespace: std

See also

<type_traits>