Aktuelle Änderungen Printable View Änderungen Bearbeiten
CodeGeneration > Hacking > EmacsW32 > Tortoise > TortoiseSVN > PythonVs > PageRank > HardRock > ByteCode > Closures > DenkZEIT > OopVsAdt > JonUdell > PHPSucks > PingBack > Functors > FunctorClear TrailIn the C++ StandardTemplateLibrary, a "FunctionObject" is an instance of a class that implements "operator()". As such, its usage is syntactically indistinguishable from a FunctionPointer - a property that lets FunctionObjects and FunctionPointers be used interchangeably in template-based GenericAlgorithms.
A function object, often called a functor, is a computer programming construct allowing an object to be invoked or called as if it were an ordinary function, usually with the same syntax.[1]
...Wenn sie nicht als Referenz oder Zeiger übergeben werden.The benefit of using objects instead of FunctionPointers is that the compiler can inline methods with FunctionObjects.