BloombergLP::bslma::Allocator::deleteObjectRaw

Destroy object and deallocate its memory footprint.

Synopsis

Declared in <bslma_allocator.h>

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

Description

Destroy the specified object and then use this allocator to deallocate its memory footprint. Do nothing if object is a null pointer. The behavior is undefined unless object was allocated using this allocator, is not a secondary base class pointer -- i.e., the address is (numerically) the same as when it was originally dispensed by this allocator, and has not already been deallocated.

Parameters

NameDescription
objectobject to destroy and whose memory to deallocate