First page Back Continue Last page Graphics
ITERATORS
These look more complicated, but they really are not that bad. Trust Me! :-)
An iterator is a value that
- Identifies a container and an element in the container.
- Lets us examine the value stored in that element.
- Provides operations for moving between elements in the container.
- Restricts the available operations in ways that correspond to what the container can handle efficiently.