[#BloombergLP-bdlcc-SharedObjectPool-getObject]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/SharedObjectPool.adoc[SharedObjectPool]::getObject
:relfileprefix: ../../../
:mrdocs:

Return a shared pointer to an object from this pool&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/shared_ptr-0a.adoc[bsl::shared&lowbar;ptr&lt;TYPE&gt;]
getObject();
----

== Description

Return a pointer to an object from this object pool&period; When the last shared pointer to the object is destroyed, the object will be reset as specified at construction and then returned to the pool&period; If this pool is empty, it is replenished according to the strategy specified at construction&period;

== Return Value

shared pointer to an object from this pool


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