Return the memory block at the specified address back to this allocator. If address is 0, this function has no effect (e.g., on allocation statistics). Otherwise, decrease the number of currently allocated bytes by the size originally requested for the block. The behavior is undefined unless address was allocated using this allocator object and has not already been deallocated.

Synopsis

Declared in <bdlma_countingallocator.h>

virtual
void
deallocate(void* address) override;

Created with MrDocs