T
Tino
Hopefully a simple question:
What is the best/safest/fastest way to clear/make empty a std:
riority_queue?
Thanks,
Ryan
What is the best/safest/fastest way to clear/make empty a std:
Thanks,
Ryan
std:Tino said:Hopefully a simple question:
What is the best/safest/fastest way to clear/make empty a
std:riority_queue?
std:riority_queue myqueue;
... // fill it up
// clear it:
myqueue = std:riority_queue(); // assign an empty one to it
Victor Bazarov said:std:riority_queue?
std:riority_queue myqueue;
... // fill it up
// clear it:
myqueue = std:riority_queue(); // assign an empty one to it
Victor
Ryan Martino said:**** Post for FREE via your newsreader at post.usenet.com ****
When you say "clear it", do you mean that I need to pop off all items?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.