Ray's playground

 

C++ templates chapter 12(Specialization and Overloading)

Two function templates with the same name can coexist, even though they may be instantiated so that both have identical parameter types.

Functions coexist

 

Function signature:

 

  1. The unqualified name of the function (or the name of the function template from which it was generated)

  2. The class or namespace scope of that name and, if the name has internal linkage, the translation unit in which the name is declared

  3. The const, volatile, or const volatile qualification of the function (if it is a member function with such a qualifier)

  4. The types of the function parameters (before template parameters are substituted if the function is generated from a function template)

  5. Its return type, if the function is generated from a function template

  6. The template parameters and the template arguments, if the function is generated from a function template

 

 

posted on 2009-10-29 21:02  Ray Z  阅读(299)  评论(0编辑  收藏  举报

导航