CPlusPlus
call back – std::bind and std::function
The function template std::bind generate a forwarding call wrapper of origin function, it returns a function object.
We can just call the wrapper to invoke the origin function.
The class template std::function is function wrapper, the instance of it can be copied and store.