Defined Terms
class template Definition from which specific classes can be instantiated. Class templates are defined using the template
keyword followed by a comma-separated list of one or more template parameters enclosed in <
and >
brackets, followed by a class definition.
default template arguments A type or a value that a template uses if the user does not supply a corresponding template argument.
explicit instantiation A declaration that supplies explicit arguments for all the template parameters. Used to guide the instantiation process. If the declaration is extern
, the template will not be instantiated; otherwise, the template is instantiated with the specified arguments. There must be a nonextern
explicit instantiation somewhere in the ...
Get C++ Primer, Fifth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.