Class Templates
In this lesson, we will learn about class templates in embedded programming.
We'll cover the following...
We'll cover the following...
A class template will be defined by placing the keyword template in front of the class template followed by type or non-type parameters.
- The parameters are declared by
classortypename. - The parameter can be used in the class body
- You can define the methods of the class template inside or outside the class.
Instantiation
The process of substituting the template parameter by the template arguments is called instantiation. In contrast to a function template, a class template is ...