C++: Using Class Templates
Class templates are a way of reusing code for classes parameterized by types of internal state variables just as function templates are a way of reusing code for functions parameterized by the types of input arguments and return types. In this course you will discover how to define and instantiate class templates along with common uses of templated classes. Learn how to use the braced initialization list constructor and explore how the compiler provides this special construct so that container objects can be initialized from a list of values. Finally investigate partial and full template specializations and how partial specializations can be used to correctly deal with pointer types.