摘要: C++的auto_ptr所做的事情,就是动态分配对象以及当对象不再需要时自动执行清理。 使用std::auto_ptr,要#include <memory>。 阅读全文
posted @ 2018-04-13 09:30 小雨滴答 阅读(108) 评论(0) 推荐(0) 编辑