Function Variant.get

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

inout ref inout(T) get(T)()
if (canFind!(T, Types));

Parameters

NameDescription
T Type of the value should be returned.

Returns

The underyling value.

Precondition

The Variant has a value.

See Also

peek, hasValue.