[#BloombergLP-bslma-SharedPtrRep-releaseRef]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/SharedPtrRep.adoc[SharedPtrRep]::releaseRef
:relfileprefix: ../../../
:mrdocs:

Atomically release a shared reference to the shared object&period;

== Synopsis

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

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

== Description

Atomically release a shared reference to the shared object referred to by this representation, disposing of the shared object if all the shared references to that object are released, and disposing of this representation if all (shared and weak) references to that object are released&period; The behavior is undefined unless `0 &lt; numReferences()`&period;


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