C++ Language/Std/Stl/CallableObjects/Functor

From Wikibooks, open books for an open world
Jump to navigation Jump to search

A "functor" is any object defined to have a custom overload implementation of the function-call-operator (operator()). A functor object can be assigned to any callable-object whose signature matches.

Additional information about functors (includes interactive examples)