C++ Language/Std/Stl/CallableObjects

From Wikibooks, open books for an open world
< C++ Language‎ | Std‎ | Stl
Jump to navigation Jump to search

The purpose of a "callable-object" is to abstractly refer to one specific invoke-able subroutine. A callable-object exists as an instance of std::function<>.

  1. A Function Name as a Value
  2. Member Function
  3. Implicit Getter-Function
  4. Functor
  5. Lambda
  6. Generic Lambda
  7. Binding a new Function