isTaggedVariant

Checks if the type is instance of tagged Algebraic.

Tagged algebraics can be defined with TaggedVariant.

enum bool isTaggedVariant(T);

Examples

static assert(!isTaggedVariant!int);
static assert(!isTaggedVariant!(Variant!(int, string)));
static assert(isTaggedVariant!(TaggedVariant!(["integer", "string"], int, string)));

Meta