I have a priority_queue, and I want to modify some of it\'s contents (the priority value), will the queue be resorted then?
It depends if it resorts on push/pop (mor
priority_queue copies the values you push into it. Your assignment at the end there will have zero effect on the order of the priority queue, nor the values stored inside of it.
priority_queue