First page Back Continue Last page Overview Text

Notes:


A functor is a function-like object. More exactly it's an instance of a class than overrides operator(), the function call operator.

Functors are similar to closures in Perl. They allow you to construct functions that have some internal state. E.g.: a functor called less than, where the constructor takes a parameter than defines what to compare against.