bsl::allocator_traits<std::allocator<ALLOCATOR_TYPE>>::deallocate

Deallocate the storage at p for n objects.

Synopsis

Declared in <bslma_allocatortraits.h>

using Base::deallocate;

Description

Invoke a.deallocate(p, n) via the underlying std::allocator_traits implementation. The behavior is undefined unless p was returned from a prior allocate call on an equal allocator and has not yet been deallocated.

Parameters

NameDescription
aallocator that performs the deallocation
ppointer previously returned by allocate
nnumber of objects in the block to deallocate