Vec.opIndex

Slicing support

  1. T opIndex(size_t index)
  2. inout(T)[] opIndex(size_t[2] slice)
    struct Vec(T, size_t N)
    inout
    inout(T)[]
    opIndex
    (
    in size_t[2] slice
    )
    if (
    N > 0 &&
    isNumeric!T
    )
  3. inout(T)[] opIndex()

Meta