Jump to content

Callable object

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Swpb (talk | contribs) at 16:01, 10 November 2015. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A callable object, in computer programming, is any object that can be called like a function.

In different languages

In C++

std::function is a template class that can hold any callable object that matches its signature.

In C#