August 2012
Intermediate to advanced
976 pages
30h 17m
English
Function templates can be overloaded by other templates or by ordinary, nontemplate functions. As usual, functions with the same name must differ either as to the number or the type(s) of their parameters.
Exercises Section 16.2.7
Exercise 16.47: Write your own version of the flip function and test it by calling functions that have lvalue and rvalue reference parameters.
Function matching (§ 6.4, p. 233) is affected by the presence of function templates in the following ways:
• The candidate functions for a call include any function-template instantiation for which template argument deduction (§ 16.2, p.
Read now
Unlock full access