Add and test dereference operators

This commit is contained in:
josh committed 2026-02-23 22:43:05 -05:00
1 parent 9dfb6e4740
commit be2da870bb
2 files changed
+35 -8

No files matched your search

+5
View File
@@ -90,6 +90,11 @@ public:
return ptr;
}
T & operator*() const
{
return *ptr;
}
bool operator!() const
{
return !ptr;