Return the specified object back to this object pool.

Synopsis

Declared in <bdlcc_objectpool.h>

void
releaseObject(TYPE* object);

Description

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

Parameters

Name

Description

object

object previously obtained from getObject

Created with MrDocs