Vec.opBinary

Perform a term by term operation on the vector.

  1. Vec!(T, N) opBinary(Vec!(U, N) oth)
    struct Vec(T, size_t N)
    const
    Vec!(T, N)
    opBinary
    (
    string op
    U
    )
    (
    in Vec!(U, N) oth
    )
    if (
    (
    op == "+" ||
    op == "-"
    ||
    op == "*"
    ||
    op == "/"
    )
    &&
    isNumeric!U
    )
    if (
    N > 0 &&
    isNumeric!T
    )
  2. Vec!(T, N) opBinary(U val)

Meta