PoolResource::Deallocate

Returns a block to the freelists, or deletes the block when it did not come from the chunks.

Synopsis

Declared in <support/allocators/pool.h>

void
Deallocate(
    void* p,
    std::size_t bytes,
    std::size_t alignment) noexcept;

Return Value

a block to the freelists, or deletes the block when it did not come from the chunks.

Parameters

NameDescription
pPointer to the block being returned.
bytesSize in bytes of the block being returned.
alignmentAlignment in bytes that was used to allocate the block.