A powerful feature of C++'s templates is `template specialization`. This allows alternative implementations to be provided based on certain characteristics of the parameterized type that is being instantiated.
Why is the output of this code : #include <iostream> template<typename T> void f(T param) { …
c++ templates specialization template-specialization reference-typeIs it possible to specialize particular members of a template class? Something like: template <typename T,bool B> …
c++ templates specialization c++-faq