#include "stdafx.h"
#include <iostream>
#include <functional>
using namespace std;
std::function<int(void)> func;
int testFunc()
{
cout << "global Func" << endl;
return 0;
}
auto lambda = [](void) -> int {
cout << "lambda func" << endl; return 0; };
class Func
{
int operator()(void)
{
cout << "仿函数" << endl;
return 0;
}
};
class CFuntion
{
bind 非静态成员函数时 注意传入对象
最新推荐文章于 2024-07-15 16:01:25 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)