首页 > TAG信息列表 > Incref

阅读智能指针

shared_ptr shared_ptr继承自_Ptr_base<_Ty>,是一个引用计数资源管理的类。 _Ptr_base是shared_ptr和weak_ptr的基类。 Ptr_base Ptr_base持有两个数据成员,element_type和_Ref_count_base。 对相同模板参数的shared_ptr可以访问,对一系列模板家族的_Ptr_base可以访问,对一系列模板参