随笔分类 -  【17】C++11

摘要:auto_ptr unique_ptr share_ptr auto_ptr 已弃用,auto_ptr存在内存崩溃的问题,因为采用的是对象所有权模式, 用auto_ptr进行资源转移,不能共享对象的所有权。 #include <iostream> #include <memory> #include 阅读全文
posted @ 2020-09-07 16:21 欧阳图图的少年成长记 阅读(131) 评论(0) 推荐(0)