set s = {1,2,3} auto it = s.end(); it--; cout<<*it<<"\n"; // This refers to last element of a set
auto it = s.end(); it--; cout<<*it<<"\n";