MmapPool.deallocate

Deallocates a memory block.

class MmapPool
@nogc @trusted nothrow
bool
deallocate
(
void[] p
)

Parameters

p void[]

A pointer to the memory block to be freed.

Return Value

Type: bool

Whether the deallocation was successful.

Examples

auto p = MmapPool.instance.allocate(20);

assert(MmapPool.instance.deallocate(p));

Meta