c++ queue clear code example Example: restting a queue stl // To clear the queue Q defined as "queue<int> Q" Q = queue<int>();