[#BloombergLP-bslalg-ScalarPrimitives-destruct-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/ScalarPrimitives.adoc[ScalarPrimitives]::destruct :relfileprefix: ../../../ :mrdocs: Destroy the specified `object` of the parameterized `TARGET_TYPE`, as if by calling the `TARGET_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 `TARGET_TYPE` has the trivial destructor trait. == Synopsis Declared in `<bslalg_scalarprimitives.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TARGET_TYPE> static void destruct(TARGET_TYPE* object); ---- == Description DEPRECATED: Use `bslma::DestructionUtil::destroy` instead. [.small]#Created with https://www.mrdocs.com[MrDocs]#