Iterators are the glue
Without iterators, there would be no way for us to move through the container and alter it according the algorithm. Hence, the iterator forms the backbone of this is process.
Iterators define the range of the container on which the algorithms work. They describe a half-open range. In a half-open range the begin iterator points to the ...