|
|
- #pragma once
-
- #include "gp/allocator/buddy.hpp"
- #include "gp/allocator/dummy.hpp"
-
- struct static_mapper {
- static gp::array<char, 4096> store;
- static gp::buddy<> impl;
-
- void* allocate(size_t sz) {
- return impl.allocate(sz);
- }
-
- bool deallocate(void* ptr) {
- return impl.deallocate(ptr);
- }
- };
|