[#BloombergLP-bslma-SharedPtrRep-releaseWeakRef] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/SharedPtrRep.adoc[SharedPtrRep]::releaseWeakRef :relfileprefix: ../../../ :mrdocs: Atomically release a weak reference to the shared object referred to by this representation, disposing of this representation if all (shared and weak) references to the shared object are released. The behavior is undefined unless `0 < numWeakReferences()`. == Synopsis Declared in `<bslma_sharedptrrep.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void releaseWeakRef(); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#