- Through templates the programming languages, provide parametric
polymorphisms, facilitating type (data-type) safe (meaning by
passing runtime errors;
- If not specialized for any data type, default is void type,
meaning would accept any data-type.
- Allow generic algorithms and data structures, encapsulated in a
class.
- Template works like a run-time code optimizer, reduces run time
over head and memory foot prints.
|