Vec.add

Adds the given vector to this one.

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

Parameters

other Vec!(V, size)

The vector to add to this one.

Return Value

Type: MY_TYPE

A reference to this vector, for method chaining.

Meta