Skip to content

内存管理

参考资料

智能指针

为了解决内存泄漏问题,C++11提供了3种智能指针类型:unique_ptrshared_ptrweak_ptr。智能指针可处理其拥有的内存的分配和删除。

Last updated: