Introduction
You're viewing an older version of this page (#4217). View the current version.
Overview
Iterators are a generalization of pointers, which means that we can have access to a sequence elements without knowing the element type or the position.
An iterator is an object that can iterate or navigate or traverse over elements in the containers that represent data structures.
There are five iterator categories according to operations defined on them.