Add operator bool() and test boolean checks

This commit is contained in:
josh committed 2026-02-23 22:44:55 -05:00
1 parent be2da870bb
commit ffe8433d55
2 files changed
+14

No files matched your search

+5
View File
@@ -99,6 +99,11 @@ public:
{
return !ptr;
}
operator bool() const
{
return ptr != nullptr;
}
};
#define rcp_managed_root(classname) \