Diagram C ++ Standard Library (h) of the bind function object
Binding bind with the normal function of
1. bind may require a transfer function parameters provided by the user does not require a function object parameters:
2. Use a non-member function, provided parameters and use prior to use:
Binding non-static member function of the class bind
1. Use of non-static member function requires an implicit this parameter
2. may be explicitly transmitted an implicit function pointer to a function object requires parameters
3. bind parameter function object before regular use and provide parameters when calling:
Reference:
1.http: //blog.think-async.com/2010/04/bind-illustrated.html
2. "STL source code analysis"
Binding bind with the normal function of
1. bind may require a transfer function parameters provided by the user does not require a function object parameters:
2. Use a non-member function, provided parameters and use prior to use:
Binding non-static member function of the class bind
1. Use of non-static member function requires an implicit this parameter
2. may be explicitly transmitted an implicit function pointer to a function object requires parameters
3. bind parameter function object before regular use and provide parameters when calling:
Reference:
1.http: //blog.think-async.com/2010/04/bind-illustrated.html
2. "STL source code analysis"