Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Function template, class template, template parameter?

Ook bekend als: template (C++) · template parameter · function template · class template

Definition 4.1 University Computer Science — Year 2 · Hoofdstuk 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.

Lees in het hoofdstuk →