remove random element from priority queue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kieselchen
    New Member
    • Mar 2008
    • 1

    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.
  • Sick0Fant
    New Member
    • Feb 2008
    • 121

    #2
    Originally posted by kieselchen
    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.

    Comment

    Working...