栈:
empty()
pop()
push()
size()
top()
队列:
back()
empty()
front()
pop()
push()
size()
优先队列:
empty()
pop()
push()
size()
top()
priority_queue<int> pq; 默认升序
priority_queue<int, vector<int>, greater<int> > pq; 降序
priority_queue<int, vector<int>, f() > pq; f()为双参数函数
时间: 2024-10-10 04:59:43