Jump to content

Functional (C++)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Vansong (talk | contribs) at 23:28, 7 December 2010 (Created page with 'A Function Object, or Functor (the two terms are synonymous) is simply any object that can be called as if it is a function. An ordinary function is a function obje...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

A Function Object, or Functor (the two terms are synonymous) is simply any object that can be called as if it is a function. An ordinary function is a function object, and so is a function pointer; more generally, so is an object of a class that defines operator().