- Main Page
- Modules
- Namespaces
- Classes
- Files

# Operator Templates

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.

## Detailed Description

Template functions for addition, subtraction, division, multiplication of class objects.

## Function Documentation

template<class Type>

Type Divide | ( | Type | i,
|  | Type | j |
| ) |  |  |

Rule for Type / Type.

Definition at line 162 of file MathFuns.h.

References Return.

    00162 { Return i / j; }

template<class Type>

Type Minus | ( | Type | i,
|  | Type | j |
| ) |  |  |

Rule for Type - Type.

Definition at line 159 of file MathFuns.h.

References Return.

    00159 { Return i - j; }

template<class Type>

Type Multiply | ( | Type | i,
|  | Type | j |
| ) |  |  |

Rule for Type * Type.

Definition at line 165 of file MathFuns.h.

References Return.

    00165 { Return i * j; }

template<class Type>

Type Plus | ( | Type | i,
|  | Type | j |
| ) |  |  |

Rule for Type + Type.

Definition at line 156 of file MathFuns.h.

References Return.

    00156 { Return i + j; }