[#BloombergLP-bslma-StdTestAllocator-deallocate]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/StdTestAllocator.adoc[StdTestAllocator]::deallocate
:relfileprefix: ../../../
:mrdocs:

Return memory previously allocated with `allocate`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
deallocate(
    xref:BloombergLP/bslma/StdTestAllocator/pointer.adoc[pointer] p,
    xref:BloombergLP/bslma/StdTestAllocator/size_type.adoc[size&lowbar;type] n = 1);
----

== Description

Return memory previously allocated with `allocate` to the underlying mechanism object by calling `deallocate` on the mechanism object with the specified `p`&period; The optionally specified `n` argument is ignored by this test allocator type&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p*
| The address of memory previously returned by `allocate`&period;
| *n*
| The number of objects (ignored)&period;
|===


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