当前位置 博文首页 > queue)_Sheena997的博客:C++之适配器(stack、queue、priority

    queue)_Sheena997的博客:C++之适配器(stack、queue、priority

    作者:[db:作者] 时间:2021-09-22 16:57

    • 适配器也是STL六大组件之一。

      文章目录

      • 一、适配器
        • 1.适配器定义
        • 2.三种顺序适配器
      • 二、stack
        • 1.stack的定义
        • 2.stack的使用
        • 3.适配器stack的模拟实现
      • 三、queue
        • 1.queue的定义
        • 2.queue的使用
        • 3.适配器queue的模拟实现
      • 四、priority_queue
        • 1.priority_queue的定义
        • 2.priority_queue的使用
        • 3.适配器priority_queue的模拟实现
        • 4.仿函数
      • 五、总结
      cs