August 2012
Intermediate to advanced
976 pages
30h 17m
English
When we define a function template specialization, we are essentially taking over the job of the compiler. That is, we are supplying the definition to use for a specific instantiation of the original template. It is important to realize that a specialization is an instantiation; it is not an overloaded instance of the function name.
Note
Specializations instantiate a template; they do not overload it. As a result, specializations do not affect function matching.
Whether we define a particular function as a specialization or as an independent, nontemplate function can impact function matching. ...
Read now
Unlock full access