重载函数调用操作符的类,其对象常称为函数对象(function object),即它们是行为类似函数的对象。又称仿函数。
... function call operator (即operator ()) 函数调用操作符 function object 函数对象 function template函数模板 ...
基于2个网页-相关网页
在这里展示了首个无类函数对象。
The first class-ness of function objects is clearly demonstrated here. Listing 10 shows what happens when I try calling a garbage method on function blah
方法调用通常返回的结果是一个函数对象,然后执行这个函数对象。
In usual cases of method invocation the return result is a function object, which is then executed.
返回的函数使用 lambda 结构创建,该结构动态创建新的函数对象。
The returned function is created using the lambda construct, which dynamically creates a new function object.
This combining of data and functions on that data is a very essence of object-oriented programming That's really what defines it.
数据与函数的结合,是面向对象编程的核心,这也就是它的定义。
An object is a collection of data and functions.
对象就是数据和函数的集合。
应用推荐