SmartEnumCore.indexOf

Looks up the index of a code in the enum (ie code is the nth code in the enum). This can be useful if the actual enum codes are not consecutive.

  1. size_t* indexOf(BaseType code)
    template SmartEnumCore(BaseType)
    static
    size_t*
    indexOf
    (
    BaseType code
    )
  2. size_t* indexOf(cstring description)

Parameters

code BaseType

code to get index for

Return Value

Type: size_t*

pointer to code's index, or null if code not in enum

Meta