08 2019 档案

用lambda函数改写std::asio的例子程序
摘要:#include "stdafx.h" #define ASIO_STANDALONE #include <iostream>#include <asio.hpp> void do_callback(asio::steady_timer& timer, int& count){ timer.asyn 阅读全文

posted @ 2019-08-21 09:04 litandy 阅读(518) 评论(0) 推荐(0) 编辑

shared_ptr和weak_ptr深入解析
摘要:我写的是参考vs2013中的std源码写的,boost的不要看了,c++11出来都好久了。 这些东西必须记录下来,不然过了3天就忘了。 要使用shared_ptr, weak_ptr,需要#include <memory>这2种指针都派生于_Ptr_base_Ptr_base类有2个成员变量 _Ty 阅读全文

posted @ 2019-08-20 14:33 litandy 阅读(1864) 评论(1) 推荐(1) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示