para vector de bucle
for (auto i = v.begin(); i != v.end(); i++)
{
std::cout << *i << endl;
}
for (auto i = v.begin(); i != v.end(); i++)
{
std::cout << *i << endl;
}
for(std::vector<T>::size_type i = 0; i != v.size(); i++) {
v[i].doSomething();
}
// Using a for loop with iterator
for(std::vector<int>::iterator it = std::begin(v); it != std::end(v); ++it) {
std::cout << *it << "\n";
}