All Classes Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
gears::concepts::StandardLayout< T > Struct Template Reference

Checks if a type has standard layout. More...

Inherits is_standard_layout< Bare< T > >.

Detailed Description

template<typename T>
struct gears::concepts::StandardLayout< T >

A Unary concept that checks if a type has standard layout.

A type with standard layout meets the following requirements:

  • No virtual functions.
  • No virtual base classes.
  • Same access control for all non-static data members.
  • No base classes that don't meet the StandardLayout concept.
  • No non-static members that don't meet the StandardLayout concept.
  • No base class of the same type as the first non-static data member.
Template Parameters
TType to check

Definition at line 255 of file basic.hpp.