std::bind (3) Linux Manual Page
std::bind – std::bind
Synopsis
Defined in header <functional>
template< class F, class... Args > (1) (since C++11)
/*unspecified*/ bind( F&& f, Args&&... args );
template< class R, class F, class... Args > (2) (since C++11)
/*unspecified*/ bind( F&& f, Args&&... args );
The function template bind generates a forwarding call wrapper for f. Calling this wrapper is equivalent to invoking f with some of its arguments bound to args.
Parameters
f – Callable object (function object, pointer to function, reference to function, pointer to member function, or pointer to data member) that will be bound to some arguments
args – list of arguments to bind, with the unbound arguments replaced by the placeholders _1, _2, _3… of namespace std::placeholders
Return value
A function object of unspecified type T, for which std::is_bind_expression<T>::value == true. It has the following members:
std::bind return type
Member objects
The return type of std::bind holds a member object of type std::decay<F>::type constructed from std::forward<F>(f), and one object per each of args…, of type std::decay<Arg_i>::type, similarly constructed from std::forward<Arg_i>(arg_i).
Constructors
The return type of std::bind is CopyConstructible if all of its member objects (specified above) are CopyConstructible, and is MoveConstructible otherwise. The type defines the following members:
Member type result_type
