Chapter 5
Standard Library Containers and Algorithms
Section 7
Iterators
Iterators represent the position of an element in a container. They provide a consistent way to operate on elements of the container, abstracting the details of the container to which the elements belong. An iterator always belongs to a range. The iterator representing the start of the range, can be accessed by the begin() function, while the iterator representing the end of the range, non-inclusive, can be obtained with the end() function.