is_standard_layout Class


For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

Tests if type is a standard layout.

template <class Ty>
struct is_standard_layout;


TyThe type to query

An instance of this type predicate holds true if the type Ty is a class that has a standard layout of member objects in memory, otherwise it holds false.

Header: <type_traits>

Namespace: std