阅读背景:

10、【C++ STL】容器适配器(stack queue priority_queue)

来源:互联网 

容器适配器

  stack、queue、priority_queue 都不支持任一种迭代器,它们都是容器适配器类型,stack是用vector/deque/list对象创建了一个先进后出容器;queue是用deque或list对象创建了一个先进先出容器;priority_queue是用vector/deque创建了一个排序队列,内部用二叉堆实现。  stack、queue、priority_queue 都不支持任一种迭代器




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: