[#BloombergLP-bslma-Allocator-deleteObject-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/Allocator.adoc[Allocator]::deleteObject
:relfileprefix: ../../../
:mrdocs:

Destroy the specified `object` based on its dynamic type and then use this allocator to deallocate its memory footprint&period; Do nothing if `object` is a null pointer&period; The behavior is undefined unless `object`, when cast appropriately to `void &ast;`, was allocated using this allocator and has not already been deallocated&period; Note that `dynamic&lowbar;cast&lt;void &ast;&gt;(object)` is applied if `TYPE` is polymorphic, and `static&lowbar;cast&lt;void &ast;&gt;(object)` is applied otherwise&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
void
deleteObject(TYPE const* object);
----


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