v3 flag enabled

Find a battle-tested library for the problem you're solving right now.

Excited Cartoon Mascot Excited Cartoon Mascot
Bind

boost::bind is a generalization of the standard functions std::bind1st and std::bind2nd. It supports arbitrary function objects, functions, function pointers, and member function pointers, and is able to bind any argument to a specific value or route input arguments into arbitrary positions.

C++ 03
Function

Function object wrappers for deferred calls or callbacks.

C++ 03
Functional

The Boost.Function library contains a family of class templates that are function object wrappers.

C++ 03
Functional/Factory

Function object templates for dynamic and static object creation

C++ 03
Functional/Forward

Adapters to allow generic function objects to accept arbitrary arguments

C++ 03
Functional/Overloaded Function

Overload different functions into a single function object.

C++ 03
Lambda

Define small unnamed function objects at the actual call site, and more.

C++ 03
Local Function

Program functions locally, within other functions, directly within the scope where they are needed.

C++ 03
Member Function

Generalized binders for function/object/pointers and member functions.

C++ 03
Phoenix

Define small unnamed function objects at the actual call site, and more.

C++ 03
Ref

A utility library for passing references to generic functions.

C++ 03
Result Of

Determines the type of a function call expression.

C++ 03
Signals2

Managed signals & slots callback implementation (thread-safe version 2).

C++ 03