Add rcp::create()

This commit is contained in:
josh committed 2026-02-23 22:52:07 -05:00
1 parent ffe8433d55
commit 21f2dd4cad
2 files changed
+14

No files matched your search

+6
View File
@@ -104,6 +104,12 @@ public:
{
return ptr != nullptr;
}
template <typename... Args>
static rcp<T> create(Args&&... args)
{
return T::create(std::forward<Args>(args)...);
}
};
#define rcp_managed_root(classname) \