#include <iostream>
#include <cmath>
#include <algorithm>
#include <utility> //用于pair
using namespace std;
template<typename T>
class myShared_ptr {
public:
explicit myShared_ptr(T* ptr = nullptr) : _ptr(ptr), _count(new int
c++智能指针的简单实现
最新推荐文章于 2024-06-18 15:58:16 发布