template in cpp
- Declare the template with the "template" keyword followed by the template parameter list in angle brackets.
- Define the template function or class, using the template parameter(s) within the function or class definition.
- When using the template, provide the actual data type or class for the template parameters within angle brackets following the function or class name.