[#BloombergLP-bslma-ManagedPtrUtil-allocatorDeleter] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ManagedPtrUtil.adoc[ManagedPtrUtil]::allocatorDeleter :relfileprefix: ../../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ELEMENT_TYPE> static void allocatorDeleter( void* object, void* allocator); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#