Variant.Variant

Undocumented in source.

Constructors

this
this(T value)

Constructs this $(D_PSYMBOL Variant) with one of the types supported in it.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Aliases

Types
alias Types = Specs

Types can be present in this $(D_PSYMBOL Variant).

Functions

get
inout(T) get()

Returns the underlying value, assuming it is of the type T.

hasValue
bool hasValue()

Tells whether this $(D_PSYMBOL Variant) is initialized.

opAssign
typeof(this) opAssign(T that)

Reassigns the value.

opEquals
bool opEquals(inout(Variant) that)

Compares this $(D_PSYMBOL Variant) with another one with the same specification for equality.

peek
bool peek()

Tells whether this $(D_PSYMBOL Variant) holds currently a value of type T.

Properties

type
TypeInfo type [@property getter]

Returns $(D_PSYMBOL TypeInfo) corresponding to the current type.

Meta