RAD Studio |  |

template

Category

C++-Specific Keywords

Syntax

Copy Code

    template-declaration:templateclass
       template < template-argument-list > declaration
    template-argument-list:
       template-argument
       template-argument-list, template argument
    template-argument:
       type-argument
       argument-declaration
    type-argument:
       class typename identifier
    template-class-name:
       template-name < template-arg-list >
    template-arg-list:
       template-arg
       template-arg-list , template-arg
    template-arg:
       expression
       type-name
    < template-argument-list > declaration

Description

Use templates (also called generics or parameterized types) to construct a family of related functions or classes.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!