Whenever someone starts using the STL and they have a vector, you usually see:
vector<int> vec ; //... code ... for( vector<int>::iterator iter = vec.begin() ; iter != vec.end() ; ++iter ) { // do stuff }
I just find that whole vector<int>::iterator
syntax sickitating. I know you can typedef vector<int>::iterator VecIterInt
, and that is slightly better..
But the question is, what's wrong with good ol':
for( int i = 0 ; i < vec.size() ; i++ ) { // code }