All books

Professional

Apps About Coach Log in Start reading

Computer Science · Glossary

What is Function template, class template, template parameter?

Also known as: template (C++) · template parameter · function template · class template

Definition 4.1 University Computer Science — Year 2 · Chapter 4 — Templates and Generic Programming

A template is a declaration preceded by template <typename T, ...>, whose template parameters stand for types (typename T) or for constant values (such as std::size_t N). A function template describes a family of functions, a class template a family of classes, one member of the family for each choice of the parameters.

Read in context →