比指针更安全的解决方案智能指针auto_ptrunique_ptrshared_ptr和weak_ptr引用引用使用问题补充参考 比指针更安全的解决方案 智能指针 auto_ptr auto_ptr出了大括号就失效了 unique_ptr shared_ptr和weak_ptr shared_ptr和weak_ptr配合使用循环引用demo 引用 引用使用 问题 补充 参考&的使用c++11&14-智能指针专题C++ 智能指针的正确使用方式