mirror of
https://gitlab.com/fbb-git/cppannotations
synced 2024-11-16 07:48:44 +01:00
partial spec. function templates: not available since not needed
This commit is contained in:
parent
d80749fd5d
commit
6cfdcbc30a
1 changed files with 9 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue