next up previous
Next: How do I specify Up: class and struct Previous: What is a pure

What are templates?

Template allow the programmers to implement algorithms once for various data types. Contrarily to macros, the compiler checks the syntax. Functions, methods and classes can be templated. Template parameters are of two kinds: data types or integers.



Subsections

Alexis Angelidis (PhD) 2005-01-11