TITLE: partial specialization of templates (Newsgroups: comp.lang.c++.moderated, 14 July 97) WANG: Keyang Wang [...] > First, someone asked me the term "partial specialization" that I've > never heard of. I only know the programmer can specialize a function > template by adding a function with the same name as the template and > with specific argument types and no tmeplate arguments. VANDEVOORDE: David Vandevoorde Now, you can do fancier things. E.g., if you have a class template: template struct Treasure { /* ... */ }; you can now declare both ``full'' specializations: template<> struct Treasure { /* ... */ }; and partial specializations: template struct Treasure { /* ... */ }; The definition associated with the latter template will be used to instantiate specializations Treasure where Q is a pointer type. [...]