iterate throgh vector using iterators c++ code example Example: c++ iterate over vector for(auto const& value: a) { /* std::cout << value; ... */ }