C++适配器学习(转载)

c++适配器分为:容器适配器、函数对象适配器、迭代器适配器。这篇文章有对三者的概述:https://www.jianshu.com/p/799e8c4d1c12

函数适配器参考:https://blog.csdn.net/liuyuchen282828/article/details/98482134

STL容器适配器有stack,queue和priority_queue三种,详见:http://c.biancheng.net/stl/container_adapters/

迭代器适配器:http://c.biancheng.net/stl/iterator_adaptor/

 

附 STL中仿函数适配器的实现:https://blog.csdn.net/u010710458/article/details/79734558

说的不是很清晰,纯粘代码的

posted @ 2020-06-23 16:53  banlcer  阅读(108)  评论(0编辑  收藏  举报