callbcak专题

C++之callbcak左值右值引用(九十九)

1.代码示例   #include <iostream>#include <string>#include <pthread.h>#include <functional>using namespace std;typedef void (*MyFun)(int n, string str);typedef std::function <void(int n, string str)