AFF --- A container for numbers (array) by Friederich and Forbriger.

◆ AFF_OPERATORS_BINOP

#define AFF_OPERATORS_BINOP (   RETCONT,
  INCONT,
  OP 
)
Value:
template<class AFF_OPERATORS_TEMPAR > \
RETCONT operator OP(const INCONT& container, \
typename INCONT::Tconst_reference value) \
{ \
RETCONT retval(container.shape()); \
aff::Browser< typename INCONT::Tcontainer > i(container); \
aff::Iterator< typename RETCONT::Tcontainer > o(retval); \
while ( i.valid() && o. valid() ) \
{ (*o) = (*i) OP value; ++o; ++i; } \
return(retval); \
} \
template<class AFF_OPERATORS_TEMPAR > \
RETCONT operator OP(typename INCONT::Tconst_reference value, \
const INCONT& container) \
{ return( container OP value ); }

binary operator macro for containers with common value type

Definition at line 95 of file operators.h.