restting a queue stl 1

restting a queue stl

// To clear the queue Q defined as "queue Q"
Q = queue();  

Here is what the above code is Doing:
1. We are creating a new queue object and assigning it to Q.
2. The new queue object is empty.
3. The old queue object is destroyed.

Similar Posts