Here http://www.cplusplus.com/reference/stl/set/ I read that std::set in C++ is \"typically\" implemented as a tree (red-black one?) and it is sorted.
I could not un
The default comparator is less, so the set will be ordered ascending. To change this you can specify another existing or custom comparator as a template argument.