Categories of Iterator


STL includes many kinds of iterators, including random access iterators, reverse iterators, and IOStream iterators. Iterators are grouped into the following categories.

These iterator categories and their interfaces can be arranged in a hierarchical fashion, as shown in the following diagram.


In addition to these basic types of iterators, other iterators have special characteristics, such as the ability to move in a reverse fashion through a collection, as well as const versions of the iterators that can iterate through read-only collections.


Copyright©1994-2026 Recursion Software LLC
All Rights Reserved - For use by licensed users only.