I have a std::set, what\'s the proper way to find the largest int in this set?
std::set
Sets are always ordered. Assuming you are using the default comparison (less), just grab the last element in the set. rbegin() might be useful.