c++ iterate over vector

C++
for(auto const& value: a) {
     /* std::cout << value; ... */
}
Source

Also in C++: