Previous Lecture | lect12 | Next Lecture |
The topics covered today are relevant for lab05 and lab06.
Topics
- Practice using custom key types with set ADT and note the need to overload the relational operators (< and ==)
- Writing generic functions and classes with templates
- Why and when should you use templates?
- What is the difference between templates and typedefs
- Use of the keyword typename.
- Convert a class implementation of stack to use templates.
- Using the C++ STL stack container classes