iterate vector cpp code example
Example: c++ looping through a vector
for(std::vector<T>::size_type i = 0; i != v.size(); i++) {
v[i].doSomething();
}
for(std::vector<T>::size_type i = 0; i != v.size(); i++) {
v[i].doSomething();
}