aboutsummaryrefslogtreecommitdiff
path: root/src/Core/Memory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Core/Memory.h')
-rw-r--r--src/Core/Memory.h24
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)...);
- }
-};