[#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&period;

== Synopsis

Declared in `&lt;bslma&lowbar;sharedptrrep&period;h&gt;`

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

== Description

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&period; The behavior is undefined unless `0 &lt; numWeakReferences()`&period;


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