template
Nach oben zu Schlüsselwörter alphabetisch - Index
Kategorie
C++-spezifische Schlüsselwörter
Syntax
template-deklaration:templateklasse
template < template-argument-liste > deklaration
template-argument-liste:
template-argument
template-argument-liste, template argument
template-argument:
typ-argument
argument-deklaration
typ-argument:
class typname bezeichner
template-klassen-name:
template-name < template-argument-liste >
template-argument-liste:
template-argument
template-argument-liste , template-argument
template-argument:
ausdruck
typ-name
< template-argument-liste > deklaration
Beschreibung
Templates, auch "generische" oder "parametrisierte" Typen genannt, dienen zur Erzeugung einer Familie verwandter Funktionen oder Klassen.