[#BloombergLP-bslstl-SharedPtrAllocateInplaceRep-disposeRep]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/SharedPtrAllocateInplaceRep.adoc[SharedPtrAllocateInplaceRep]::disposeRep
:relfileprefix: ../../../
:mrdocs:

Destroy this representation object and deallocate the associated memory&period; This method is automatically invoked by `releaseRef` and `releaseWeakRef` when the number of weak references and the number of shared references both reach zero and should not be explicitly invoked otherwise&period; The behavior is undefined unless `disposeObject` has already been called for this representation&period; Note that this method effectively serves as the representation object&apos;s destructor&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;sharedptrallocateinplacerep&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
disposeRep() override;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
