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

This struct provides a namespace for helper functions used for deleting objects in various pools and allocators&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct DeleterHelper;
----

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslma/DeleterHelper/deleteObject.adoc[`deleteObject`] 
| Destroy the specified `object` based on its dynamic type and then use the specified `allocator` to deallocate its memory footprint&period; Do nothing if `object` is a null pointer&period; The behavior is undefined unless `allocator` is non&hyphen;null, and `object`, when cast appropriately to `void &ast;`, was allocated using `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;
| xref:BloombergLP/bslma/DeleterHelper/deleteObjectRaw.adoc[`deleteObjectRaw`] 
| Destroy the specified `object` and then use the specified `allocator` to deallocate its memory footprint&period; Do nothing if `object` is a null pointer&period; The behavior is undefined unless `allocator` is non&hyphen;null, `object` is *not* a secondary base class pointer (i&period;e&period;, the address is (numerically) the same as when it was originally dispensed by `allocator`), and `object` was allocated using `allocator` and has not already been deallocated&period;
|===



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