Vec.opApply

Foreach support.

  1. int opApply(int delegate(size_t i, ref T) dg)
  2. int opApply(int delegate(ref T) dg)
  3. int opApply(int delegate(size_t i, ref T) @(safe) dg)
    struct Vec(T, size_t N)
    @safe
    int
    opApply
    (
    int delegate
    (
    size_t i
    ,
    ref T
    )
    @safe
    dg
    )
    if (
    N > 0 &&
    isNumeric!T
    )
  4. int opApply(int delegate(ref T) @(safe) dg)

Meta