Template Instantiation and Template Specializations
Learn about template instantiation and template specializations in this lesson.
We'll cover the following...
Template instantiation
Automatic code generation for a specific set of template parameter values is called an instantiation of that template for that specific set of parameter values. For example, to!string
and to!int
are two different instantiations of the to
function template.
As we will mention again in a separate section below, distinct instantiations of templates produce distinct and incompatible types. ...