MSDN中的解释:
When a CObArray object is deleted, or when its elements are removed, only the CObject pointers are removed, not the objects they reference.
如果指针指向堆内存,那么当指针删除后堆内存该如何释放呢?
...全文
764打赏收藏
CObArray的析构?
MSDN中的解释: When a CObArray object is deleted, or when its elements are removed, only the CObject pointers are removed, not the objects they reference. 如果指针指向堆内存,那么当指针删除后堆内存该如何释放呢?