Vector of shared pointers , memory problems after clearing the vector

后端 未结 4 1571
暗喜
暗喜 2021-01-31 03:21

I realized that after calling vector.clear() which hold shared pointers, the destructors of the object which own by shared_ptr is not being released. <

4条回答
提交回复
热议问题