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
Name | Description |
---|---|
T | Type of the value should be returned. |
Returns
The underyling value.
Precondition
The Variant has a value.
See Also
peek, hasValue.