August 2012
Intermediate to advanced
976 pages
30h 17m
English
Differently from function templates, a class template specialization does not have to supply an argument for every template parameter. We can specify some, but not all, of the template parameters or some, but not all, aspects of the parameters. A class template partial specialization is itself a template. Users must supply arguments for those template parameters that are not fixed by the specialization.
Note
We can partially specialize only a class template. We cannot partially specialize a function template.
In § 16.2.3 (p. 684) we introduced the library remove_reference type. That template works through ...
Read now
Unlock full access