[#bsl-allocator_traits-0ae-deallocate] = xref:bsl.adoc[bsl]::xref:bsl/allocator_traits-0ae.adoc[allocator_traits<std::allocator<ALLOCATOR_TYPE>>]::deallocate :relfileprefix: ../../ :mrdocs: Deallocate the storage at `p` for `n` objects. == Synopsis Declared in `<bslma_allocatortraits.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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 [cols="1,4"] |=== | Name| Description | *a* | allocator that performs the deallocation | *p* | pointer previously returned by `allocate` | *n* | number of objects in the block to deallocate |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#