BloombergLP::bslma::ManagedPtrUtil::allocatorDeleter

Make use of AllocatorUtil::deleteObject to destroy and deallocate the specified object using the specified allocator. The behavior is undefined unless allocator is an instance of bslma::Allocator that was used to supply memory for object and object points to an instance of ELEMENT_TYPE that is within its lifetime.

Synopsis

Declared in <bslma_managedptr.h>

template<class ELEMENT_TYPE>
static
void
allocatorDeleter(
    void* object,
    void* allocator);