Function MmapPool.deallocate
Deallocates a memory block.
bool deallocate
(
void[] p
) nothrow @nogc @trusted;
Parameters
Name | Description |
---|---|
p | A pointer to the memory block to be freed. |
Returns
Whether the deallocation was successful.
Example
auto p = MmapPool .instance .allocate(20);
assert(MmapPool .instance .deallocate(p));