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

`deleteObject` overloads

== Synopses

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

This overload has no effect&semi; supports null&hyphen;pointer literal calls&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bslma/Allocator/deleteObject-0a.adoc[deleteObject](xref:bsl/nullptr_t-08.adoc[bsl::nullptr&lowbar;t] nullPointerLiteral);
----

[.small]#xref:BloombergLP/bslma/Allocator/deleteObject-0a.adoc[_» more&period;&period;&period;_]#

Destroy `object` by dynamic type and deallocate its memory&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
void
xref:BloombergLP/bslma/Allocator/deleteObject-0f.adoc[deleteObject](TYPE const* object);
----

[.small]#xref:BloombergLP/bslma/Allocator/deleteObject-0f.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *nullPointerLiteral*
| null&hyphen;pointer literal (unused&semi; selects this overload)
| *object*
| object to destroy and whose memory to deallocate
|===


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