First page Back Continue Last page Graphics
STL Function Objects
Functors
A function object (or functor), is an object that has operator ( ) defined so that in the following example:
- FunctionObjectType fo;
- ...
- fo(...);
the expression fo( ) is a call of operator ( ) for the function object fo instead of a call of the function fo( ).