Черга STL

#include <queue>

queue<int> q;

q.push(1);

q.push(3);

q.push(5);

printf("%d ", q2.front());  // 1

q2.pop();  // видалити 1

Очистити чергу

queue<int> empty;

swap(q2, empty);