StructTypeInfo#

struct StructTypeInfo#

The compile-time information a struct carries: its field list and the byte offset of each field.

Public Functions

int find_field(const std::string &name) const#

Find a field by name.

Returns -1 if not found.

bool field_is_aligned(int field_index) const#

True if every instance of this field in an array of this struct is naturally addressable in units of the field’s scalar type.