C++ Language/Templates/TemplateParameters

From Wikibooks, open books for an open world
Jump to navigation Jump to search

In the syntax template<typename T> template, the placeholder symbol T is a "template-parameter". When that template gets specialized, the same datatype will be substituted in place of all instances of T in the template code.

  1. Default Template-Parameters
  2. Deducing Template-Parameters
  3. Variable Number of Template-Parameters