[#BloombergLP-bslma-Allocator-deleteObject-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/Allocator.adoc[Allocator]::deleteObject :relfileprefix: ../../../ :mrdocs: `deleteObject` overloads == Synopses Declared in `<bslma_allocator.h>` This function has no effect. Note that it exists to support calling `deleteObject` will a null pointer literal, that would otherwise not deduce to a pointer type for the method above. As calls to `deleteObject` with (typed) null pointer values have well‐defined behavior, it should also support calls with a null pointer literal. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bslma/Allocator/deleteObject-0a.adoc[deleteObject](xref:bsl/nullptr_t-08.adoc[bsl::nullptr_t]); ---- [.small]#xref:BloombergLP/bslma/Allocator/deleteObject-0a.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> void xref:BloombergLP/bslma/Allocator/deleteObject-0f.adoc[deleteObject](TYPE const* object); ---- [.small]#xref:BloombergLP/bslma/Allocator/deleteObject-0f.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#