UnionEnum

Unite (Join) Members (both their Names and Values) of Enumerations E. All enumerator names and values of E must be unique.

template UnionEnum (
E...
) if (
E.length >= 2 &&
allSatisfy!(isEnum, E)
&&
is(CommonOriginalType!E)
)

Meta