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

Atomically acquire 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
acquireWeakRef();
----

== Description

Atomically acquire a weak reference to the shared object referred to by this representation&period; The behavior is undefined unless `0 &lt; numWeakReferences() &verbar;&verbar; 0 &lt; numReferences()`&period;


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