SmartEnumCore.codeFromIndex

Looks up a code in the enum by its index. (ie gets the nth code in the enum).

template SmartEnumCore(BaseType)
static
BaseType
codeFromIndex
(
size_t index
)

Parameters

index size_t

index of code to get

Return Value

Type: BaseType

nth code in enum

Throws

array out of bounds if index is > number of codes in the enum

Meta