[#BloombergLP-bdlma-ConcurrentMultipool-deleteObject]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/ConcurrentMultipool.adoc[ConcurrentMultipool]::deleteObject
:relfileprefix: ../../../
:mrdocs:

Destroy and deallocate `object` using its dynamic type&period;

== Synopsis

Declared in `&lt;bdlma&lowbar;concurrentmultipool&period;h&gt;`

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

== Description

Destroy the specified `object` based on its dynamic type and then use this multipool object to deallocate its memory footprint&period; This method has no effect if `object` is 0&period; The behavior is undefined unless `object`, when cast appropriately to `void &ast;`, was allocated using this multipool object 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;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *object*
| object to destroy and deallocate&semi; may be null
|===


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