(C++) std::function 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