智能指针

智能指针

参考资料

使用
智能指针在C++11版本之后提供,包含在头文件
<memory>中,shared_ptr、unique_ptr、weak_ptr(伴随类)