UnionDeclaration

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 type of field[]. Input: loc sc elements The explicit arguments that given to construct object. stype The constructed object type. Returns false if any errors occur. Otherwise, returns true and elements[] are rewritten for the output.

isPOD
bool isPOD()

Return true if struct is POD (Plain Old Data). This is defined as: not nested no postblits, destructors, or assignment operators no 'ref' fields or fields that are themselves non-POD The idea being these are compatible with C structs.

Meta