In C++ a container class is a collection of different objects.
If we need to traverse through this collection of objects, we cannot do it using simple index variables. Hence, we have a special class in STL called an Iterator class which can be used to step through the contents of the container class.
The various categories of iterators include input iterators, output iterators, forward iterators, bidirectional iterators, random access, etc.