摘要:
0. 1. std::shared_ptr is a smart pointer that retains shared ownership of an object through a pointer. Several shared_ptr objects may own the same obj 阅读全文
摘要:
0. Problem There is no memory leak of the following code, but there are problems. void memory_leak(){ ClassA *ptr = new ClassA(); /* if return here, t 阅读全文