摘要: 作为STL六大组件之一,在STL源代码及其应用中,很多地方使用了仿函数(functor),尤其在关联型容器(如set、map)以及algorithm(如find_if、count_if等)中。虽然已经接触functor很长时间了,但一直只是编写一些简单的functor,至于为什么要使用functor... 阅读全文
posted @ 2015-05-21 23:55 yongpenghan 阅读(928) 评论(0) 推荐(0) 编辑