用“function object”造句大全,function object造句
An overloaded constructor takes a function object called with no arguments and returning nothing.
However, the method copies a pointer to the selected function into a local variable, and then calls the function with the call method of the function object, rather than calling it directly.
In this case the returned function object is a closure which encapsulates some logging code and the data needed to call the original function.
In usual cases of method invocation the return result is a function object, which is then executed.