468,513 Members | 979 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

remove random element from priority queue

hej,
i would like to use the stl priority queue, but i occasionally have to remove random elements form the queue. is there any possibility for that?

concert problem:
i'd like to use priority queue for pending actions which i have to perform at a certain time. this actions may also be timeouts. this timeouts i would like to remove as soon as they are not necessary any more.
Mar 28 '08 #1
1 7484
Sick0Fant
121 100+
hej,
i would like to use the stl priority queue, but i occasionally have to remove random elements form the queue. is there any possibility for that?

concert problem:
i'd like to use priority queue for pending actions which i have to perform at a certain time. this actions may also be timeouts. this timeouts i would like to remove as soon as they are not necessary any more.
I'm fairly sure that there isn't. Use vectors for random access.
Mar 28 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by jobz | last post: by
38 posts views Thread by Aaron W. LaFramboise | last post: by
11 posts views Thread by koperenkogel | last post: by
16 posts views Thread by Crirus | last post: by
4 posts views Thread by vfunc | last post: by
3 posts views Thread by thomas | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.