Vec.opBinary

Perform a scalar operation on the vector.

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

Meta