SmartEnumCore.descriptionFromIndex

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

template SmartEnumCore(BaseType)
static
descriptionFromIndex
(
size_t index
)

Parameters

index size_t

index of code to get description for

Return Value

Type: istring

description of nth code in enum

Throws

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

Meta