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