Function template

A function template defines a family of functions.

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
CWG 214C++98the exact procedure of partial ordering was not specifiedspecification added
CWG 532C++98the order between a non-static member function templateand a non-member function template was not specifiedspecification added
CWG 581C++98template argument list in an explicit specialization orinstantiation of a constructor template was allowedforbidden
CWG 1321C++98it was unclear whether same dependent names in thefirst declaration and a redeclaration are equivalentthey are equivalent andthe meaning is same asin the first declaration
CWG 1395C++11deduction failed when A was from a pack,and there was no empty pack tie-breakerdeduction allowed,tie-breaker added
CWG 1406C++11the type of the new first parameter added fora non-static member function template wasnot relevant to the ref-qualifier of that templatethe type is an rvaluereference type if theref-qualifier is &&
CWG 1446C++11the type of the new first parameter added for a non-static memberfunction template without ref-qualifier was an lvalue referencetype, even if that member function template is compared with afunction template whose first parameter has rvalue reference typethe type is anrvalue referencetype in this case
CWG 2373C++98new first parameters were added to the parameter listsof static member function templates in partial orderingnot added

# See also