BloombergLP::bslma::TestAllocator::lastDeallocatedNumBytes

Return the number of bytes of the most recent deallocation request.

Synopsis

Declared in <bslma_testallocator.h>

Allocator::size_type
lastDeallocatedNumBytes() const;

Description

Return the number of bytes of the most recent deallocation request. Return 0 if a null pointer was most recently deallocated, or if the request was invalid (e.g., an attempt to deallocate memory not allocated through this allocator).

Return Value

byte count of the most recent deallocation, or 0 if invalid