priority_queue find specific element

I'm using the following priority_queue for discrete event simulation:
std::priority_queue < event*,
std::deque<event*, std::allocator<event*> >,
compareEventTimes > event_queue;
Event class have an id_event member that I would like to use in order to find
an specific event, not necessarily the top of the queue, and then delete it.
I have noticed that priority_queue doesn't have iterator pointer and therefore
I can't check the queue sequentially in order to find an specific event,
Could you tell me how I can perform this task?
I think you are asking for functionality that is beyond scope of a queue and breaks the definition
of it.
Topic archived. No new replies allowed.