summaryrefslogtreecommitdiff
path: root/src/misc/memory.hpp
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-06-13 20:19:22 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-06-13 20:23:03 +0800
commit8ee8e55ff2b085762dad5ab41269448e7a91757f (patch)
treeec1ed6b4944ca1fc4f1adbf67a255912e23a516c /src/misc/memory.hpp
parent23492ea6f58762914a91516be6a9c180969178a2 (diff)
internal: shortened smart pointer types
Diffstat (limited to 'src/misc/memory.hpp')
-rw-r--r--src/misc/memory.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/misc/memory.hpp b/src/misc/memory.hpp
new file mode 100644
index 0000000..a90368e
--- /dev/null
+++ b/src/misc/memory.hpp
@@ -0,0 +1,10 @@
+#pragma once
+
+#include <memory>
+
+template <typename T>
+using SP = std::shared_ptr<T>;
+template <typename T>
+using WP = std::weak_ptr<T>;
+template <typename T>
+using UP = std::unique_ptr<T>;