Jive reference manual
Tuple assignment operators

#include <jem/base/tuple/operators.h> or
#include <jem/base/Tuple.h>.

In addition to the standard assignment operator, jem provides a set of overloaded computed assignment operators for tuples and tuple expressions. These are defined as follows:

template <class T, int M, int N>
const Tuple<T,M,N>& operator <op>=
( const Tuple<T,M,N>& lhs,
const T& rhs )
{
return ( lhs = lhs <op> rhs );
}
template <class T, int M, int N>
const Tuple<T,M,N>& operator <op>=
( const Tuple<T,M,N>& lhs,
const TupleExpr<T,M,N>& rhs )
{
return ( lhs = lhs <op> rhs );
}

where <op> can be one of the following operators:

The computed assignment operators are defined in the header file <jem/base/tuple/operators.h>. They are also available through the general header file <jem/base/Tuple.h>.

Note that the computed assignment operators are not member functions.