I had a solution to a problem which included priority queue.
I wish to know if we can change the comparator of priority queue at run time like if we initially had the declaration as priority_queue<int> pq
which will store no.s in non-increasing order, can I use the same priority queue to store no.s in increasing order after pq.clear()
Thanks