Skip to content

Glossary: Software Design Patterns in C++

Iterator

Also written: iterators, iterator pattern

An object that steps through a collection one item at a time without showing how it is stored. Every range-for uses a container's `begin()` and `end()`, and `find` returns an iterator where `end()` means not found.

Where the book teaches it

Related terms

ViewGenerator