The OpenD Programming Language

getEnumIndexFromKey.getEnumIndexFromKey

template getEnumIndexFromKey(T, bool caseInsensitive = true, getKeysTemplate...)
@safe pure nothrow @nogc
bool
getEnumIndexFromKey
(
C
)
(
scope const(C)[] key
,
ref uint index
)
if (
is(C == char) ||
is(C == wchar)
||
is(C == dchar)
)
if (
is(T == enum) &&
getKeysTemplate.length <= 1
)

Meta