The only problem with using a priority_queue is that you cannot iterate through them. (they have no iterators) You can only access the .top member. So if you have any need at all for scanning through your events, a priority_queue is not a good choice.
|