Vec.opIndexOpAssign

Implements op-assignments for indexed values of the vector, so you can do things like v[2] *= 10;. Supports addition, subtraction, multiplication, and division.

struct Vec(T, size_t size)
@nogc
void
opIndexOpAssign
(
string op
V
)
(,
size_t i
)
if (
isNumeric!V
)
if (
isNumeric!T &&
size > 0
)

Parameters

value V

The value to apply.

i size_t

The index in the vector's array.

Meta