c++ set iterator code example Example: iterating a set c++ //Given set s for(auto it: s){ cout << it << endl; }