[#bsl-allocator_traits-0ae-deallocate]
= xref:bsl.adoc[bsl]::xref:bsl/allocator_traits-0ae.adoc[allocator&lowbar;traits&lt;std::allocator&lt;ALLOCATOR&lowbar;TYPE&gt;&gt;]::deallocate
:relfileprefix: ../../
:mrdocs:

Deallocate the storage at `p` for `n` objects&period;

== Synopsis

Declared in `&lt;bslma&lowbar;allocatortraits&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
using Base::deallocate;
----

== Description

Invoke `a&period;deallocate(p, n)` via the underlying `std&colon;&colon;allocator&lowbar;traits` implementation&period; The behavior is undefined unless `p` was returned from a prior `allocate` call on an equal allocator and has not yet been deallocated&period;

== 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]#
