I have an algorithm that uses a priority queue to select an element to operate on. However, on each step an O(1) amount of elements in the queue need to have their weights updated.
The standard stl priority queue does not allow for this kind of update. Is there another container in the stl that can be used for this kind of updating?