2013年12月21日

C++ 仿函数/函数指针/闭包lambda

摘要: 在上一篇文章中介绍了C++11新引入的lambda表达式(C++支持闭包的实现),现在我们看一下lambda的出现对于我们编程习惯的影响,毕竟,C++11历经10年磨砺,出140新feature,对于我们的programming idiom有深远影响。我们先看一下是不是lambda的出现对于仿函数的影响。1) 仿函数wikipedia 的定义:A function object, also called a functor, functional, or functionoid, is a computer programming construct allowing an object to 阅读全文

posted @ 2013-12-21 17:59 anzhsoft 阅读(1040) 评论(0) 推荐(0) 编辑

导航