Callable Objects

suggest change

Introduction

Callable objects are the collection of all C++ structures which can be used as a function. In practice, this are all things you can pass to the C++17 STL function invoke() or which can be used in the constructor of std::function, this includes: Function pointers, Classes with operator(), Classes with implicit conversions, References to functions, Pointers to member functions, Pointers to member data, lambdas. The callable objects are used in many STL algorithms as predicate.

Remarks

A very useful talk by Stephan T. Lavavej (<functional>: What’s New, And Proper Use) (Slides) leads to the base of this documentation.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents