[#bsl-allocator_traits-0108-deallocate] = xref:bsl.adoc[bsl]::xref:bsl/allocator_traits-0108.adoc[allocator_traits]::deallocate :relfileprefix: ../../ :mrdocs: Deallocate the storage at `elementAddr` for `n` objects. == Synopsis Declared in `<bslma_allocatortraits.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void deallocate( ALLOCATOR_TYPE& basicAllocator, xref:bsl/allocator_traits-0108/pointer.adoc[pointer] elementAddr, xref:bsl/allocator_traits-0108/size_type.adoc[size_type] n); ---- == Description Invoke `basicAllocator.deallocate(elementAddr, n)`. The behavior is undefined unless the specified `elementAddr` was returned from a prior call to the `allocate` method of an allocator that compares equal to the specified `allocator`, and has not yet been passed to a `deallocate` call of such an allocator object. == Parameters [cols="1,4"] |=== | Name| Description | *basicAllocator* | allocator that performs the deallocation | *elementAddr* | pointer previously returned by `allocate` | *n* | number of objects in the block to deallocate |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#