StructDeclaration.isPOD

Determine if struct is POD (Plain Old Data).

POD is defined as:

  1. not nested
  2. no postblits, destructors, or assignment operators
  3. no ref fields or fields that are themselves non-POD

The idea being these are compatible with C structs.

class StructDeclaration
final
bool
isPOD
()

Return Value

Type: bool

true if struct is POD

Meta