| 47 | } |
| 48 | |
| 49 | void deallocate(T* p, std::size_t n) |
| 50 | { |
| 51 | if (p != nullptr) { |
| 52 | memory_cleanse(p, sizeof(T) * n); |
| 53 | } |
| 54 | LockedPoolManager::Instance().free(p); |
| 55 | } |
| 56 | }; |
| 57 | |
| 58 | // This is exactly like std::string, but with a custom allocator. |
nothing calls this directly
no test coverage detected