[#BloombergLP-bdlcc-ObjectPool-deleteObject-03]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/ObjectPool.adoc[ObjectPool]::deleteObject
:relfileprefix: ../../../
:mrdocs:

`deleteObject` overloads

== Synopses

Declared in `&lt;bdlcc&lowbar;objectpool&period;h&gt;`

Destroy the specified `instance` based on its static type and return its memory footprint to the appropriate memory manager&period; The behavior is undefined unless `instance` was obtained from a call to `createObject` on this object factory and has not yet been deleted&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
xref:BloombergLP/bdlma/Factory/deleteObject.adoc[deleteObject](TYPE* instance) = 0;
----

[.small]#xref:BloombergLP/bdlma/Factory/deleteObject.adoc[_» more&period;&period;&period;_]#

This concrete implementation of `bdlma&colon;&colon;Factory&colon;&colon;deleteObject` invokes `releaseObject` on the specified `object`, returning it to this pool&period; The behavior is undefined if `object` is already in a released state&period; Note that this does _not_ destroy the object and should not be invoked directly&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
xref:BloombergLP/bdlcc/ObjectPool/deleteObject-0d.adoc[deleteObject](TYPE* object);
----

[.small]#xref:BloombergLP/bdlcc/ObjectPool/deleteObject-0d.adoc[_» more&period;&period;&period;_]#


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