(C++) std::function

January 15, 2018 ยท View on GitHub

std::function is part of the C++11 STL for working with functions in general, including member functions.

Examples

  • std::function example 1: global functions
  • std::function example 2: member functions
  • std::function example 3: member functions with arguments