* |
When we define a function template at least one |
|||||||
* |
||||||||
template < class T > |
||||||||
* |
You need to be careful about the interaction between template functions and overloading, since both of these mechanisms appear to be doing similar things. In the case of swap, the programmer could have produced a special purpose version of the swap procedure for character strings, one which understood about pointers to characters. To get this version of the swap procedure, and not the generated one, the parameters must match. |
|||||||
* |
||||||||
* |
3. Ordinary parameter resolution on a non-template function