gpt4 book ai didi

c++ - 适配器模式

转载 作者:行者123 更新时间:2023-11-30 03:10:45 26 4
gpt4 key购买 nike

适配器模式有哪些实际用途?

最佳答案

STL 堆栈是现实生活中的适配器。

STL 中的其他适配器是:

  • 队列
  • 优先队列
  • 反向迭代器
  • 插入迭代器
  • 流迭代器

另见 design patterns used in STL(standard template library)

关于c++ - 适配器模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2918699/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com