Vec.add

Adds the given scalar value to this vector.

  1. Vec!(T, size) add(Vec!(V, size) other)
  2. Vec!(T, size) add(V scalar)
    struct Vec(T, size_t size)
    ref @nogc
    Vec!(T, size)
    add
    (
    V
    )
    ()
    if (
    isNumeric!V
    )
    if (
    isNumeric!T &&
    size > 0
    )

Parameters

scalar V

The scalar value to add to this vector.

Return Value

Type: Vec!(T, size)

A reference to this vector.

Meta