c++ iterate through constant list

C++
const list<int> numbers;
for(list<int>::const_iterator it = numbers.begin(); it != numbers.end(); it++)
    cout << *it << endl;
Source

Also in C++: