國文屋

位置:首頁 > 造句 > 

“function object”造句,怎麼用function object造句

造句5.29K

An overloaded constructor takes a function object called with no arguments and returning nothing.

In usual cases of method invocation the return result is a function object, which is then executed.

function object造句

In this case the returned function object is a closure which encapsulates some logging code and the data needed to call the original function.

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.