Day 37 Recap Questions
- Why use iterators?
- What are the bare minimum operators that need to be overloaded by an iterator?
- When won’t a simple pointer correctly iterate through a collection?
- Given a container class, how/where should its iterator class be specified?
- In addition to defining the iterator class, what else should the container do to support iterators?
- What might go wrong if we don’t also define a const_iterator for a container?