1. ► Templates are mostly used for generic containers
2. ► Template compilation is slow because of:
3. ► In ‘int * const’, interger value is a constant
4. ► C++ doesn’t allow type mismatches
5. ► Templates are type-safe
6. ► A constant function cannot have side-effects
7. ► Template types are checked at run-time
8. ► ‘const int *’ is same as ‘int const *’
9. ► Constants allow compiler optimizations
10. ► dynamic_cast is used to find out the exact type of template class at run-time
11. ► Using const is a good design practice to avoid the possibility of side-effects
12. ► Templates allow optimizations because of:
13. ► Templates can be used to provide compile time constraints
14. ► Templates are used for making a function or a class type agnostic
15. ► A const value can be made to change via static_cast
16. ► ‘int *’ is same as ‘const int *’