[#bsl-allocator_traits-0108-deallocate]
= xref:bsl.adoc[bsl]::xref:bsl/allocator_traits-0108.adoc[allocator&lowbar;traits]::deallocate
:relfileprefix: ../../
:mrdocs:

Invoke `basicAllocator&period;deallocate(elementAddr, n)`&period; 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&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
deallocate(
    ALLOCATOR&lowbar;TYPE& basicAllocator,
    xref:bsl/allocator_traits-0108/pointer.adoc[pointer] elementAddr,
    xref:bsl/allocator_traits-0108/size_type.adoc[size&lowbar;type] n);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
