SomeVariant

Gets subtype of algebraic without types for which isErr is true.

template SomeVariant (
T : Algebraic!Types
Types...
) {}

Examples

@reflectErr static struct ErrorS { }
alias V = Variant!(ErrorS, Err!string, long, double, This[]);
static assert(is(SomeVariant!V == Variant!(long, double, This[])));