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