diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2024-09-30 11:08:46 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2024-09-30 11:08:46 -0400 |
commit | 19d9a04e36e7fb96eebe89e24311408460c29a70 (patch) | |
tree | 4d5f5ba595d5a5e2b59ce7b102c06b77c7be7721 /memory.hpp | |
parent | 85c8fd05f1a0c0224882c4fafa60003d3ef56cf3 (diff) |
reorganize files
Diffstat (limited to 'memory.hpp')
-rw-r--r-- | memory.hpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/memory.hpp b/memory.hpp deleted file mode 100644 index 0467bf6..0000000 --- a/memory.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef MEMORY_HPP -#define MEMORY_HPP - -#include <cstddef> -#include <type_traits> - -template<typename T> -struct kallocator -{ - using value_type = T; - using size_type = std::size_t; - using difference_type = std::ptrdiff_t; - using propagate_on_container_move_assignment = std::true_type; - using is_always_equal = std::true_type; - - template<class U> - struct rebind { - typedef kallocator<U> other; - }; - - kallocator() = default; - - template<typename U> - kallocator(const kallocator<U>&) noexcept {} - - T* allocate(std::size_t n) { - return new T[n]; - } - - void deallocate([[maybe_unused]] T* p, [[maybe_unused]] std::size_t n) { - - } -}; - -void memory_initialize(); - -#endif // MEMORY_HPP - |