First page Back Continue Last page Overview Graphics
Implementation:
Polymorphic Iterators
- Polymorphic Iterators are heap-based (dynamically allocated by CreateIterator and passed to client).
- Memory leak if client fails to deallocate.
- Use Proxy pattern to do deallocation in destructor of stack-based proxy class.