SmartEnumCore.opIndex

Gets the code of a description.

  1. istring opIndex(BaseType code)
  2. BaseType opIndex(cstring description)
    template SmartEnumCore(BaseType)
    static
    BaseType
    opIndex

Parameters

description cstring

description to look up

Return Value

Type: BaseType

description's code

Throws

if description is not in the map

Meta