如何使用STL中的 队列?
有朋友告诉我这样使用队列:
#include<list>
#include<queue>
using namespace std;
typedef list<int, allocator<int> > INTLIST;
typedef queue<int,INTLIST > INTQUEUE;
为什么不能直接这样一句:typedef queue<int> INTQUEUE;?????????
朋友为什么告诉我要是用这样两句:
typedef list<int, allocator<int> > INTLIST;
typedef queue<int,INTLIST > INTQUEUE;???????????????
请问,上述两句定义中的第二个参数各是什么含义?
谢谢!!