JohnGu

导航

2018年2月7日 #

C++智能指针

摘要: C++智能指针 C++ 11 新特性 智能指针(shared_ptr, unique_ptr, weak_ptr) shared_ptr shared_ptr基本用法 shared_ptr采用引用计数的方式管理所指向的对象。当有一个新的shared_ptr指向同一个对象时(复制shared_ptr等 阅读全文

posted @ 2018-02-07 15:55 JohnGu 阅读(13779) 评论(0) 推荐(0) 编辑