UnionDeclaration

Unions are a variation on structs.

extern (C++) final
class UnionDeclaration : StructDeclaration {}

Inherited Members

From StructDeclaration

fit
bool fit(Loc loc, Scope* sc, Expressions* elements, Type stype)

Fit elements[] to the corresponding types of the struct's fields.

isPOD
bool isPOD()

Determine if struct is POD (Plain Old Data).

hasRegularCtor
bool hasRegularCtor(bool checkDisabled)

Verifies whether the struct declaration has a constructor that is not a copy constructor. Optionally, it can check whether the struct declaration has a regular constructor, that is not disabled.

Suggestion Box / Bug Report