iterate over a vector of vectors c++ code example
Example 1: c++ iterate over vector
for(auto const& value: a) {
/* std::cout << value; ... */
}
Example 2: c++ iterate over vector of pointers
for (vector<int Type>:: iter = myVector.begin(); iter != myVector.end(); iter++)
(*iter)->display();