BloombergLP::bsltf::StdStatefulAllocator::deallocate

Return previously allocated memory to this allocator.

Synopsis

Declared in <bsltf_stdstatefulallocator.h>

void
deallocate(
    TYPE* address,
    bslma::Allocator::size_type numElements);

Description

Return memory previously allocated at the specified address for numElements back to this allocator. The numElements argument is ignored by this allocator type. The behavior is undefined unless address was allocated using this allocator object and has not already been deallocated.

Parameters

NameDescription
addressmemory previously returned by allocate
numElementsnumber of elements originally requested (ignored)