Iterator Design Pattern
An iterator is an object that facilitates the traversal of a data structure
It keeps a ref to the current element
Knows how to move to a different element
Ex. Above are inbuilt C++ forward and reverse iterators. You can also get constant ite...
paraskaushik.hashnode.dev1 min read