13.7 — Partial template specialization

This lesson and the next are optional reading for those desiring a deeper knowledge of C++ templates. Partial template specialization is not used all that often (but can be useful in specific cases).

In lesson 13.4 — Template non-type parameters, you learned how expression parameters could be used to parameterize template classes.

Let’s take another . . . → Read More: 13.7 — Partial template specialization

13.6 — Class template specialization

In the previous lesson 13.5 — Function template specialization, we saw how it was possible to specialize functions in order to provide different functionality for specific data types. As it turns out, it is not only possible to specialize functions, it is also possible to specialize an entire class!

Consider the case where you want . . . → Read More: 13.6 — Class template specialization