valvector_compound_op

View page source

The valvector Numeric Compound Assignment Operators

Computes the element-by-element result of the numeric compound assignment operators.

Syntax

y op x

op

The compound operator op is += (compound addition) , -= (compound subtraction), *= (compound multiplication) , or /= (compound division) .

x

The operand x is a const valvector.

y

The operand and result y is a valvector.

Return

The value returned by each of these operators is a reference to y .

Example

The file valvector_compound_op.cpp is an example and test of the valvector compound assignment operators.