std::shared_ptr的简单实现

#ifndef STD_SHAREDPTR_H #define STD_SHAREDPTR_H #include <stdint.h> #include <algorithm> using namespace std; template<typename T> class My_SharedPtr{ My_SharedPtr(): count_(new size_t),
相关文章
相关标签/搜索