aboutsummaryrefslogtreecommitdiff
path: root/src/DI/allocation.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-04-30 16:28:13 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:58 +0200
commit40d02748924aa7c48b04cf948204d8dacdfbbc74 (patch)
tree4d07a3703207295799b02cef52618a8f0c820542 /src/DI/allocation.hpp
parentdb6edcd473a684420e9a7611b24462df21165c1b (diff)
refactor: replace DI files with the yacppdic library
Diffstat (limited to 'src/DI/allocation.hpp')
-rw-r--r--src/DI/allocation.hpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/DI/allocation.hpp b/src/DI/allocation.hpp
deleted file mode 100644
index ac0fa38..0000000
--- a/src/DI/allocation.hpp
+++ /dev/null
@@ -1,32 +0,0 @@
-#pragma once
-
-#include <memory>
-
-template <class Traits, class Type>
-struct RebindAllocHelper
-{
- using type = typename Traits::template rebind_alloc<Type>;
-};
-
-template <class Allocator>
-class AllocDestructor
-{
- using _alloc_traits = std::allocator_traits<Allocator>;
-
-public:
- using Pointer = typename _alloc_traits::pointer;
- using Size = typename _alloc_traits::size_type;
-
- using pointer = Pointer;
- using size = Size;
-
- AllocDestructor(Allocator &allocator, Size alloc_size) noexcept;
-
- void operator()(Pointer ptr) noexcept;
-
-private:
- Allocator &_allocator;
- Size _size;
-};
-
-#include "allocation.tpp"