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

Return the specified `object` back to this object pool&period; Invoke the RESETTER specified at construction, or the default RESETTER if none was provided, before making the object available for reuse&period; Note that if RESETTER is the default type (`ObjectPoolFunctors&colon;&colon;Nil`), then this method should be invoked to return only _valid_ objects because the pool uses the released objects to satisfy further `getObject` requests&period; The behavior is undefined unless the `object` was obtained from this object pool&apos;s `getObject` method and is not already in a released state&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
releaseObject(TYPE* object);
----


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