Take the following two lines of code:
for (int i = 0; i < some_vector.size(); i++) { //do stuff }
And this:
for (som
The second form represents what you're doing more accurately. In your example, you don't care about the value of i, really - all you want is the next element in the iterator.