Namespaces
Variants
Views
Actions

C++ concepts: StandardLayoutType

From cppreference.com

Specifies that a type is standard layout type. Standard layout type are useful for communicating with code written in other programming languages.

Note, that the standard doesn't define a named requirement or concept with this name. This is a type category defined by the core language. It is included here as concept only for consistency.

[edit] Requirements

  • All non-static members are and base classes are standard layout types (meets the requirements of StandardLayoutType
  • Has no virtual functions or virtual base classes
  • All non-static member have the same access control
  • The first non-static member type is not a base class

[edit] See also

checks if a type is standard-layout type
(class template) [edit]