Supposedly:
for (vector::iterator iter = ivec.begin(); iter != ivec.end(); ++iter) {}
I do understand the difference when it com
In general pre-increment is usually preferable to post-increment because it may allow for some optimization that can avoid temporaries being constructed. As to exactly how it's implemented that depends on the STL included with your compiler.