summaryrefslogtreecommitdiff
path: root/asl/box.hpp
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-11-19 00:08:33 +0100
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-12-20 15:35:58 +0100
commitd241eaf1b209dcfb05656842dd6250067b704d99 (patch)
tree49f34f6226f4614611d16ba6332b1b50b51a4712 /asl/box.hpp
parent58200ce939a591008a8d9406f437252ce2b175cf (diff)
Add allocator, start work on box
Diffstat (limited to 'asl/box.hpp')
-rw-r--r--asl/box.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/asl/box.hpp b/asl/box.hpp
new file mode 100644
index 0000000..0cab66b
--- /dev/null
+++ b/asl/box.hpp
@@ -0,0 +1,19 @@
+#pragma once
+
+#include "asl/allocator.hpp"
+#include "asl/annotations.hpp"
+
+namespace asl
+{
+
+template<is_object T, allocator Allocator = DefaultAllocator>
+class box
+{
+ T* m_ptr;
+ ASL_NO_UNIQUE_ADDRESS Allocator m_alloc;
+
+public:
+};
+
+} // namespace asl
+