independent of data types
.
For example, A template class is assigned a memory instead of creating memory for each data type specified. The template class can store different data type variables and is easily reused.
Template Type Parameters
. These place holder types limits the function call given by the functions. They play the key role.
The compiler, therefore, sends the function template model to the function called. The called function replaces its parameters in the template model parameters and uses it. So, many functions use one template model.