摘要: 所谓的适配器就是底层利用仿函数,然后修改仿函数的接口,达到自己的目的;例如:templateclass binder1st的适配器,其本质是一个类,它的模板参数operation其实是仿函数类(仿函数其实是struct类),内部函数调用operator()(const typename Operat... 阅读全文
posted @ 2015-06-23 22:16 kkshaq 阅读(551) 评论(0) 推荐(0) 编辑