iterate through a vector in cpp code example Example: c++ iterate over vector Click to copyfor(auto const& value: a) { /* std::cout << value; ... */ }