More main progress; tons of headers & stuff

Former-commit-id: a6e365791b
This commit is contained in:
2022-09-13 00:26:54 -04:00
parent c6823f56cd
commit 329618c585
95 changed files with 1673 additions and 202 deletions

View File

@@ -16,9 +16,10 @@ public:
// const T* get() const { return x0_ptr; }
T* operator->() { return x0_ptr; }
const T* operator->() const { return x0_ptr; }
void operator=(T* ptr) {
single_ptr& operator=(T* ptr) {
delete x0_ptr;
x0_ptr = ptr;
return *this;
}
bool null() const { return x0_ptr == nullptr; }
T& operator*() { return *x0_ptr; }