November 2002
Intermediate to advanced
552 pages
10h 52m
English
In this chapter we review some of the fundamentals introduced in the first part of this book in depth: the declaration of templates, the restrictions on template parameters, the constraints on template arguments, and so forth.
C++ currently supports two fundamental kinds of templates: class templates and function templates (see Section 13.6 on page 212 for a possible future change in this area). This classification includes member templates. Such templates are declared much like ordinary classes and functions, except for being introduced by a parameterization clause of the form
template<… parameters here… >
or perhaps
export template<… parameters here… >
(see Section 6.3 on page ...
Read now
Unlock full access