BloombergLP::bdlma::ConcurrentPool::deleteObject

Destroy the specified object based on its dynamic type and then use this pool to deallocate its memory footprint. This method has no effect if object is 0. The behavior is undefined unless object, when cast appropriately to void *, was allocated using this pool and has not already been deallocated. Note that dynamic_cast<void *>(object) is applied if TYPE is polymorphic, and static_cast<void *>(object) is applied otherwise.

Synopsis

Declared in <bdlma_concurrentpool.h>

template<class TYPE>
void
deleteObject(TYPE const* object);