Supposedly:
for (vector<int>::iterator iter = ivec.begin(); iter != ivec.end(); ++iter)
{}
I do understand the difference when it comes to pre/post increment for built-in types like int
etc but in terms of an iterator, what's the difference here between ++iter
and iter++
? (Bear in mind that I do know that both yield the same result here).