diff options
| author | hachem <im@hachem.wtf> | 2026-08-20 03:00:56 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-20 08:13:17 +0200 |
| commit | 9a19ae463880e06bae84eb8ae1b7279595ecdc38 (patch) | |
| tree | a652344ef39837096dc76b0386550870eec3f77e /src/Core/Memory.h | |
| parent | b0be47e54943bf45babac5bce6c2f6f0dc5cb4dc (diff) | |
[fix]: path for the logo
Diffstat (limited to 'src/Core/Memory.h')
| -rw-r--r-- | src/Core/Memory.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/Core/Memory.h b/src/Core/Memory.h deleted file mode 100644 index 3240c71..0000000 --- a/src/Core/Memory.h +++ /dev/null @@ -1,24 +0,0 @@ -#pragma once - -#include <memory> - -namespace Donut -{ - template<typename T> - using Ref = std::shared_ptr<T>; - - template<typename T> - using Scope = std::unique_ptr<T>; - - template<typename T, typename ... Args> - constexpr auto create_scope(Args&& ... args) -> Scope<T> - { - return std::make_unique<T>(std::forward<Args>(args)...); - } - - template<typename T, typename ... Args> - constexpr auto create_ref(Args&& ... args) -> Ref<T> - { - return std::make_shared<T>(std::forward<Args>(args)...); - } -}; |
