Type that can hold one of the types listed as its template parameters.
$(D_PSYMBOL Variant) is a type similar to $(D_KEYWORD union), but
$(D_PSYMBOL Variant) keeps track of the actually used type and throws an
assertion error when trying to access an invalid type at runtime.
Type that can hold one of the types listed as its template parameters.
$(D_PSYMBOL Variant) is a type similar to $(D_KEYWORD union), but $(D_PSYMBOL Variant) keeps track of the actually used type and throws an assertion error when trying to access an invalid type at runtime.