C + + standard library (vii) Diagram of the Bind function object

Source: Internet
Author: User
Bind binds to the normal function 1. Bind can convert a user-supplied function that requires a parameter to a function object that does not require a parameter:

2. Use non-member functions to provide parameters before and during use:

Binding of bind to non-static member function of Class 1. The use of non-static function members requires an implicit this parameter

2. You can also explicitly pass an implicit function pointer to a function object that requires a parameter

3. The function object often uses both the previous binding parameter and the invocation to provide parameters:


Reference:
1.http://blog.think-async.com/2010/04/bind-illustrated.html
2. "STL Source Code Analysis"

C + + standard library (vii) Diagram of the Bind function object

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.