The OpenD Programming Language

enumIdentifiers

Static immutable instance of Enum Identifiers.

template enumIdentifiers (
T
) if (
is(T == enum)
) {
static immutable
string[EnumMembers!T.length] enumIdentifiers;
}

Examples

enum E {z = 1, b = -1, c}
static assert(enumIdentifiers!E == ["z", "b", "c"]);

Meta