[#BloombergLP-bslma-DestructionUtil-destroy] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/DestructionUtil.adoc[DestructionUtil]::destroy :relfileprefix: ../../../ :mrdocs: Destroy the specified `object` of the parameterized `TYPE`, as if by calling the `TYPE` destructor, but do not deallocate the memory occupied by `object`. Note that the destructor may deallocate other memory owned by `object`. Also note that this function is a no‐op if the `TYPE` has the trivial destructor trait. == Synopsis Declared in `<bslma_destructionutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> static void destroy(TYPE* object); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#