CScannableObjectInfo progress (#20)

This commit is contained in:
2025-05-08 07:59:01 -07:00
committed by GitHub
parent 878388e87b
commit 311c0b112d
10 changed files with 147 additions and 52 deletions

View File

@@ -2,6 +2,7 @@
#define _RSTL_SINGLE_PTR
#include "types.h"
#include <rstl/rmemory_allocator.hpp>
namespace rstl {
template < typename T >
@@ -12,8 +13,9 @@ public:
single_ptr() : x0_ptr(nullptr) {}
single_ptr(T* ptr) : x0_ptr(ptr) {}
single_ptr(const single_ptr& other) : x0_ptr(other.x0_ptr) { other.x0_ptr = nullptr; }
~single_ptr() { delete x0_ptr; }
~single_ptr() {
delete x0_ptr;
}
single_ptr& operator=(single_ptr& other) {
if (&other == this) {
return *this;