Is there any function in stl that joins two std::queue
objects?
The std::queue
adapter doesn't support iteration so you'd actually have to roll your own method to do this. But given that you need this functionality, you should probably consider a different container. If you need random access, the probably std::deque
. If you only need front/back access like a queue consider std::list
which can be splice
d together in constant time.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With