BloombergLP::bdlma::ConcurrentMultipool::deleteObject

Destroy the specified object based on its dynamic type and then use this multipool object 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 multipool object 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_concurrentmultipool.h>

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