- 博客(2)
- 资源 (3)
- 收藏
- 关注
原创 函数指针和Lambda
从函数指针到Lambda 有一个函数原型: int Test(int, double); 使用typedef typedef int(*TestFunc)(int,double); //... TestFunc pFunc;//声明 直接声明 int(*pFunc)(int, double); 使用std::function #include <functional> std::function<int(int, double)> func; //VC9: st
2021-09-07 09:54:34
560
原创 C++20之模块
C++20模块语法特点VS2019中的使用缺点 语法 在模块文件中: export module MyModule;//定义模块名 export auto MyFunc() { } namespace MyName { export auto Test1(){} } export class CA { public: CA() = default; ~CA() = default; void DoIt() { } }; 在使用模块的文件中: import MyMo
2021-09-06 10:12:04
1666
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅