Destroy and deallocate object using its static type.

Synopsis

Declared in <bdlma_pool.h>

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

Description

Destroy the specified object 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 is not a secondary base class pointer (i.e., the address is (numerically) the same as when it was originally dispensed by this pool), was allocated using this pool, and has not already been deallocated.

Parameters

Name

Description

object

object to destroy and deallocate; may be null

Created with MrDocs