Template functions for addition, subtraction, division, multiplication of class objects. More...
Functions | |
template<class Type > | |
Type | Plus (Type i, Type j) |
Rule for Type + Type. | |
template<class Type > | |
Type | Minus (Type i, Type j) |
Rule for Type - Type. | |
template<class Type > | |
Type | Divide (Type i, Type j) |
Rule for Type / Type. | |
template<class Type > | |
Type | Multiply (Type i, Type j) |
Rule for Type * Type. |
Template functions for addition, subtraction, division, multiplication of class objects.
Type Divide | ( | Type | i, |
Type | j | ||
) |
Rule for Type / Type.
Definition at line 162 of file MathFuns.h.
References Return.
{ Return i / j; }
Type Minus | ( | Type | i, |
Type | j | ||
) |
Rule for Type - Type.
Definition at line 159 of file MathFuns.h.
References Return.
{ Return i - j; }
Type Multiply | ( | Type | i, |
Type | j | ||
) |
Rule for Type * Type.
Definition at line 165 of file MathFuns.h.
References Return.
{ Return i * j; }
Type Plus | ( | Type | i, |
Type | j | ||
) |
Rule for Type + Type.
Definition at line 156 of file MathFuns.h.
References Return.
{ Return i + j; }