struct compare { bool operator() (const int& x, const int& y) const { return x s; //use the comparator like this }