deque<int> mydeck (3,100); // deque with 3 elements
list<int> mylist (2,200); // list with 2 elements
queue<int> first; // empty queue
queue<int> second (mydeck); // queue initialized to copy of deque
queue<int,list<int> > third; // empty queue with list as underlying container
queue<int,list<int> > fourth (mylist);
stack
LIFO stack
相關function
empty()
size()
top
>> 沒有front()
back()
push()
pop()
queue
FIFO queue![image](https://user-images.githubusercontent.com/34474924/191687516-5004c484-b466-4e6b-9c31-15ec5d0ec075.png)
創建方式和stack相似
empty()
size()
front()
back()
push()
pop()