From 5b361d81dbd2af0d0e99b9eb1adebea76ff05db0 Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 20 Aug 2026 02:27:02 +0200 Subject: [chore]: MASSIVE refactor + more vulkan bs --- src/Core/Memory.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/Core/Memory.h') diff --git a/src/Core/Memory.h b/src/Core/Memory.h index 0abc6b1..3240c71 100644 --- a/src/Core/Memory.h +++ b/src/Core/Memory.h @@ -2,23 +2,23 @@ #include -namespace Donut +namespace Donut { template using Ref = std::shared_ptr; - template + template using Scope = std::unique_ptr; - - template - constexpr Scope CreateScope(Args&& ... args) + + template + constexpr auto create_scope(Args&& ... args) -> Scope { return std::make_unique(std::forward(args)...); } - + template - constexpr Ref CreateRef(Args&& ... args) + constexpr auto create_ref(Args&& ... args) -> Ref { return std::make_shared(std::forward(args)...); } -}; \ No newline at end of file +}; -- cgit v1.3