From 40d02748924aa7c48b04cf948204d8dacdfbbc74 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 30 Apr 2022 16:28:13 +0200 Subject: refactor: replace DI files with the yacppdic library --- src/DI/allocation.hpp | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 src/DI/allocation.hpp (limited to 'src/DI/allocation.hpp') 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 - -template -struct RebindAllocHelper -{ - using type = typename Traits::template rebind_alloc; -}; - -template -class AllocDestructor -{ - using _alloc_traits = std::allocator_traits; - -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" -- cgit v1.2.3-18-g5258