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