c++ custom comparator for elements in set code example
Example: c++ custom comparator for elements in set
struct compare {
bool operator() (const int& x, const int& y) const {
return x s; //use the comparator like this
}
struct compare {
bool operator() (const int& x, const int& y) const {
return x s; //use the comparator like this
}