取反适配器
void printFunTwo(int val,int start) { cout << val << endl; cout << start << endl; } //函数指针适配器 void test03() { vector<int> v; for (int i = 0; i < 10; i++) v.push_back(i); //将函数指针 适配为 函数对象 //ptr_fun for_each(v.begin(), v.end(), bind2nd(ptr_fun(printFunTwo),100)); }