2014年4月1日

C++11智能指针

摘要: 今晚跟同学谈了一下智能指针,突然想要看一下C++11的智能指针的实现,因此下了这篇博文。以下代码出自于VS2012 1 template 2 class shared_ptr 3 : public _Ptr_base 4 { // class for reference counted resource management 5 public: 6 typedef shared_ptr _Myt; 7 typedef _Ptr_base _Mybase; 8 9 shared_ptr() _NOEXCEPT 1... 阅读全文

posted @ 2014-04-01 11:40 kirito 阅读(2297) 评论(3) 推荐(1) 编辑

导航