Variant.has

Gets whether the variant contains the given type.

struct Variant
@nogc @trusted nothrow
bool
has
(
T
)
()

Return Value

Type: bool

Whether the variant is storing a type with the given type's type id.

Meta