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