Destroy and deallocate object using its dynamic type.
Synopsis
Declared in <bdlma_concurrentpool.h>
template<class TYPE>
void
deleteObject(TYPE const* object);
Description
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.
Parameters
Name |
Description |
object |
object to destroy and deallocate; may be null |
Created with MrDocs