The C++ compiler may generate extra fields for
classes that contain base classes or virtual functions. Objects
of these types may not conform to the mapping shown below.
| Type | struct |
| Size | The sum of the sizes for each type in the struct plus padding for alignment |
| Alignment | Each structure is aligned according to the structure alignment rules. |
| Storage Mapping | Here is a definition of a
structure that contains bit fields, followed by a diagram
of its storage. Given the following structure:
struct s would be stored as follows:
|