Variant.get

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

struct Variant
ref inout
inout(T)
get
(
T
)
()
if ()

Parameters

T

Type of the value should be returned.

Return Value

Type: inout(T)

The underyling value.

Precondition: The $(D_PSYMBOL Variant) has a value.

See Also

$(D_PSYMBOL peek), $(D_PSYMBOL hasValue).

Meta