...

/

Behavior of std::bind and std::function

Behavior of std::bind and std::function

Let's take a step deeper into the workings of std::bind and std::function.

std::bind

Because of std::bind, you can create function objects in a variety of ways:

  • bind the arguments to an arbitrary position,
  • change the order of the arguments,
  • introduce placeholders for arguments,
  • partially evaluate
...