EnumBase.opApply

foreach iteration over the names and values in the enum and their indices.

Note that the iterator passes the enum values as type Value (i.e. int), rather than values of the real enum E. This is in order to keep the iteration functionality in the IEnum interface, which knows nothing of E.

  1. int opApply(int delegate(ref const(Name) name, ref const(Value) value) dg)
  2. int opApply(int delegate(ref size_t i, ref const(Name) name, ref const(Value) value) dg)
    template EnumBase(T...)
    override
    int
    opApply
    (
    scope int delegate
    (
    ref size_t i
    ,
    ref const(Name) name
    ,
    ref const(Value) value
    )
    dg
    )

Meta