Iterators

Iterators are objects that provide a way to access the elements of a container sequentially without exposing the underlying representation. They act as a bridge between containers and algorithms, allowing algorithms to work with any container that supports iterators.

Last updated