I\'m trying to declare a priority queue in c++ using a custom comparison function...
So , I declare the queue as follows:
std::priority_queue
std::priority_queue, bool (*)compare(int, int)> pq(compare);
Is another way not mentioned.