容器适配器:stack, queue, priority_queue
stack
namespace std {
template <typename T,
typename Container = deque<T>>
class stack;
}
- Internal interface
- Core interface
push() inserts an element into the stack.
top() returns the next element in the stack.
pop() removes an element from the stack.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)