C++11读书笔记
zhurui3747
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
std::async实例
std::async是C++11提供的专门处理多线程并行任务的类,里面内嵌了std::thread。 用户在使用时,可以不用关心thread内部处理,只需要关心其返回类型std::future<typename std::result_of<F(Ts...)>::type>。 多说无益,上代码。 #include <typeinfo> #include <iostream> #include <future> #include <chro原创 2021-05-21 23:46:38 · 270 阅读 · 0 评论 -
enable_shared_from_this使用说明
#include "stdafx.h" #include <memory> #include <string> #include <map> #include <functional> #include <mutex> using namespace std; // refereance https://my.oschina.net/u/4586915/blog/4864592 // 浅析C++智能指针和enable_shared_from_th原创 2021-05-21 23:35:49 · 237 阅读 · 0 评论
分享