Templates: Specialization
In this lesson, we will learn about template specialization.
We'll cover the following...
Templates define the behavior of a family of classes and functions.
- Special types, non-types, or templates as arguments must be treated special
- You can fully specialize templates. Class templates can even be partially specialized.
- The methods and attributes of specialization don’t have to be identical.
- General or Primary templates can coexist with partially or fully specialized templates.
The compiler prefers fully specialized to partially specialized templates and partially specialized templates to primary templates.
Primary Template
The primary template ...