| 53 | { |
| 54 | using value_type = T; |
| 55 | T* allocate(std::size_t num) |
| 56 | { |
| 57 | void* ptr = nullptr; |
| 58 | if (posix_memalign(&ptr,4096,num*sizeof(T))) |
| 59 | throw std::bad_alloc(); |
| 60 | return reinterpret_cast<T*>(ptr); |
| 61 | } |
| 62 | void deallocate(T* p, std::size_t num) |
| 63 | { |
| 64 | free(p); |
nothing calls this directly
no outgoing calls
no test coverage detected