Answers for "extra parameter in comparator function for sort"

C++
0

extra parameter in comparator function for sort

class TopicSorter{
    Query query_;
public:
    TopicSorter(Query query){ query_ = query; }
    bool operator()(Topic t1, Topic t2) const {
    return compareTopics( t1 , t2 , query_);
    }
};
Posted by: Guest on May-16-2021

Code answers related to "extra parameter in comparator function for sort"

Browse Popular Code Answers by Language