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]
  2. auto get [@property getter]
    struct VariantN(size_t maxDataSize, AllowedTypesParam...)
    @property inout
    get
    (
    uint index
    )
    ()

Parameters

index

The index of the type among AllowedTypesParam, zero-based.

Meta

Suggestion Box / Bug Report