VariantN.get

Returns the value stored in the VariantN object, either by specifying the needed type or the index in the list of allowed types. The latter overload only applies to bounded variants (e.g. Algebraic).

  1. inout(T) get [@property getter]
    struct VariantN(size_t maxDataSize, AllowedTypesParam...)
    @property inout
    inout(T)
    get
    (
    T
    )
    ()
  2. auto get [@property getter]

Parameters

T

The requested type. The currently stored value must implicitly convert to the requested type, in fact DecayStaticToDynamicArray!T. If an implicit conversion is not possible, throws a VariantException.

Meta