std::function and std::bind: what are they, and when should they be used?

Viewed 122769

I know what functors are and when to use them with std algorithms, but I haven't understood what Stroustrup says about them in the C++11 FAQ.

Can anyone explain what std::bind and std::function are, when they should be used, and give some examples for newbies?

4 Answers
Related