Jive reference manual
|
#include <jem/base/array/operators.h>
or
#include <jem/base/Array.h>
.
In addition to the standard assignment operator, jem provides a set of overloaded computed assignment operators for arrays and array expressions. These are defined as follows:
where <op>
can be one of the following operators:
*
(multiplication) /
(division) %
(modulo division) +
(addition) -
(substraction) &
(bitwise and)
| (bitwise or) ^
(bitwise xor) <<
(bitwise left shift) >>
(bitwise right shift)The computed assignment operators should be called with two arguments. The first one should be an Array
object or an lvalue array expression. The second argument should be an Array
object, an rvalue array expression, or a scalar. All operators return a reference to the first argument.
The computed assignment operators are defined in the header file <jem/base/array/operators.h>
. They are also available through the general header file <jem/base/Array.h>
.
Note that the computed assignment operators are not member functions.