BloombergLP::bslma::DeleterHelper::deleteObjectRaw

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

Synopsis

Declared in <bslma_deleterhelper.h>

template<
    class TYPE,
    class ALLOCATOR>
static
void
deleteObjectRaw(
    TYPE const* object,
    ALLOCATOR* allocator);