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

`deleteObjectRaw` overloads

== Synopses

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

This function has no effect&period; Note that it exists to support calling `deleteObjectRaw` will a null pointer literal, that would otherwise not deduce to a pointer type for the method above&period; As calls to `deleteObjectRaw` with (typed) null pointer values have well&hyphen;defined behavior, it should also support calls with a null pointer literal&period;


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

[.small]#xref:BloombergLP/bslma/Allocator/deleteObjectRaw-068.adoc[_» more&period;&period;&period;_]#

Destroy the specified `object` 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` was allocated using this allocator, is *not* a secondary base class pointer &hyphen;&hyphen; i&period;e&period;, the address is (numerically) the same as when it was originally dispensed by this allocator, and has not already been deallocated&period;


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

[.small]#xref:BloombergLP/bslma/Allocator/deleteObjectRaw-07.adoc[_» more&period;&period;&period;_]#


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