#include<queue>
queue<int> q;
q.push(a);
q.front();
q.back();
q.pop();
q.size();
q.empty();
//优先队列 堆
priority_queue<int> q;
priority_queue<int,vector<int>,less<int> > q;
priority_queue<int,vector<int>,greater<int> > q;
q.top();
q.pop();
q.size();
q.empty();
q.push(a);
//注意:在进行取堆顶元素操作的时候,必须提前判断 是否为空
//双端队列
#include<deque>
deque<int> q(10,0);//长度为10 值都为0
q.push_front(a);
q.push_back(a);
q.pop_front();
q.pop_back();
q.size();
q.empty();
q.resize();