next up previous
Next: Run-time calculations Up: C++/C Previous: Class interactions


Templates allow you to easily reuse duplicated code when classes or functions need to work with more than one type, but behave similarly for the different types. Some information on templates, including the use of friend within templates is available at

Chris Paciorek 2012-01-21