Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 450 Bytes

File metadata and controls

3 lines (2 loc) · 450 Bytes

当一个StrBlob对象被销毁时,其智能指针shared_ptr类类型将调用其析构函数,销毁此智能指针,并递减其所指向的对象的引用计数,当引用计数为0时,shared_ptr的析构函数将delete其所指所分配的对象

当一个StrBlobPtr对象被销毁时,其智能指针weak_ptr类类型将调用其析构函数,销毁此智能指针(不递减其所指的对象的引用计数,也不销毁此对象)