Vec.opApply

Foreach support.

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

Meta