partial spec. function templates: not available since not needed

This commit is contained in:
Frank B. Brokken 2016-03-01 15:32:17 +01:00
parent d80749fd5d
commit 6cfdcbc30a

View file

@ -4,8 +4,15 @@ number and type of template parameters that are specialized. em(Partial
specializations) may be defined for class templates having specializations) may be defined for class templates having
hi(partial specialization) hi(partial specialization)
hi(class template: partial specialization) hi(class template: partial specialization)
multiple template parameters. Function templates cannot be partially multiple template parameters.
specialized.
Function templates cannot be partially specialized: there is no need for
hi(function template: partial specialization)
that, as a `partially specialized function template' merely is a function
template that is tailored to particular types of some of its parameters. Since
function templates can be overloaded, `partially specializing' a function
template simply means that overloads have to be defined for those specialized
parameter types.
With partial specializations a subset (any subset) of template type parameters With partial specializations a subset (any subset) of template type parameters
are given specific values. It is also possible to use a class template partial are given specific values. It is also possible to use a class template partial