c 2b 2b set sort order

Solutions on MaxInterview for c 2b 2b set sort order by the best coders in the world

showing results for - "c 2b 2b set sort order"
Christal
09 Jan 2018
1struct cmpStruct {
2  bool operator() (int const & lhs, int const & rhs) const
3  {
4    return lhs > rhs;
5  }
6};
7
8std::set<int, cmpStruct > myInverseSortedSet;
9