StructDeclaration.hasRegularCtor

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.

class StructDeclaration
final
bool
hasRegularCtor
(
bool checkDisabled = false
)

Parameters

checkDisabled bool

if the struct has a regular non-disabled constructor

Return Value

Type: bool

true, if the struct has a regular (optionally, not disabled) constructor, false otherwise.

Meta