BloombergLP::bdlcc::SharedObjectPool::getObject

Return a shared pointer to an object from this pool.

Synopsis

Declared in <bdlcc_sharedobjectpool.h>

bsl::shared_ptr<TYPE>
getObject();

Description

Return a pointer to an object from this object pool. 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. If this pool is empty, it is replenished according to the strategy specified at construction.

Return Value

shared pointer to an object from this pool