摘要:
lamda用法和函数对象,回调函数 部分用法对比#include #include #include #include #include #include #include #include #include using namespace std;//////////////////////////////////////////////////////////////////////////enum Conversion_Ch{ UPPER = 0, //大写 LOWER, //小写};/*** 仿函数*/class CFunctor{public: CF... 阅读全文
摘要:
用法小demo,定义参见crt目录下的new头文件源码#include #include #include #include #include using namespace std;void __cdecl newhandler(){ cout << "The new_handler is called:" << endl; throw bad_alloc(); return;}int main(){ set_new_handler (newhandler); try { while (1) { new i... 阅读全文