| 36 | |
| 37 | template<size_t alignment> |
| 38 | void* AlignedAllocator<alignment>::allocMemory(size_t count) { |
| 39 | void *mem = rx_aligned_alloc(count, alignment); |
| 40 | if (mem == nullptr) |
| 41 | throw std::bad_alloc(); |
| 42 | return mem; |
| 43 | } |
| 44 | |
| 45 | template<size_t alignment> |
| 46 | void AlignedAllocator<alignment>::freeMemory(void* ptr, size_t count) { |
nothing calls this directly
no test coverage detected