自定义Shared_ptr和Unique_ptr,引用计数和内存管理

Shared_ptr.hios #pragma once template <typename T> class Shared_ptr { public: Shared_ptr(); Shared_ptr(T *p); Shared_ptr(const Shared_ptr &sp); Shared_ptr &operator=(const Shared_ptr
相关文章
相关标签/搜索