is_trivial 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_trivial Class.

Tests whether the type is a trivial type.

template <class T>  
struct is_trivial;

Parameters

T
The type to query.

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.

Header: <type_traits>

Namespace: std

<type_traits>

Show: