C++ Template Syntax


To declare a template function or class in C++ you must preceed the definition with the following:

template<class T>

The following items describe the syntax of declaring and using templates: