templates.h
// templates.h
// Declaration of function templates
#ifndef TEMPLATES_H
#define TEMPLATES_H
// Desc: gets the input of a value
// Pre: << operator defn'd for type T
// Post: prompts the user for input, stores in ref param.
template <typename T>
void input(T & input);
// Desc: Multiplies two values
// Pre: * operator defn'd for type T
// Post: returns the product of tA and tB
template <typename T>
T mult(const T& tA, const T& tB);
// Desc: Adds two values
// Pre: + operator defn'd for type T
// Post: returns the sum of tA and tB
template <typename T>
T add(const T& tA, const T& tB);
#include "templates.hpp"
#endif