[#BloombergLP-bslma-Allocator-deleteObject-0f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/Allocator.adoc[Allocator]::deleteObject :relfileprefix: ../../../ :mrdocs: Destroy the specified `object` based on its dynamic type and then use this allocator to deallocate its memory footprint. Do nothing if `object` is a null pointer. The behavior is undefined unless `object`, when cast appropriately to `void *`, was allocated using this allocator and has not already been deallocated. Note that `dynamic_cast<void *>(object)` is applied if `TYPE` is polymorphic, and `static_cast<void *>(object)` is applied otherwise. == Synopsis Declared in `<bslma_allocator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> void deleteObject(TYPE const* object); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#