Previous Lecture | lect10 | Next Lecture |
Code from lecture
https://github.com/ucsb-cs24-f23/cs24-f23-lectures/tree/main/lect10
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
- Convert a class implementation of stack to use templates.
- Using the C++ STL stack container classes