Take the following two lines of code:
for (int i = 0; i < some_vector.size(); i++) { //do stuff }
And this:
for (som
because you are not tying your code to the particular implementation of the some_vector list. if you use array indices, it has to be some form of array; if you use iterators you can use that code on any list implementation.