Return the memory block at p having bytes and alignment.
Synopsis
Declared in <bslma_allocator.h>
virtual
void
do_deallocate(
void* p,
std::size_t bytes,
std::size_t alignment) override;
Description
Return the memory block at the specified p address, having the specified bytes and specified alignment, back to this allocator. Unless overriden in a derived class, this function will forward the deallocation request to the deallocate virtual function, padding bytes and adjusting p as necessary to account for alignment values other than the natural alignment for an object of size bytes. The behavior is undefined unless address is a block allocated from this allocator object using the same bytes and alignment and not already deallocated.
Parameters
Name |
Description |
p |
address of the block to deallocate |
bytes |
size of the block in bytes |
alignment |
alignment of the block |
Created with MrDocs