[#BloombergLP-bslma-ManagedPtr-0fa-2conversion-0b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ManagedPtr-0fa.adoc[ManagedPtr]::operator xref:BloombergLP/bslma/ManagedPtr_Ref.adoc[ManagedPtr&lowbar;Ref&lt;REFERENCED&lowbar;TYPE&gt;]
:relfileprefix: ../../../
:mrdocs:

Return a managed pointer reference, referring to this object&period; Note that this conversion operator is used implicitly to allow the construction of managed pointers from rvalues because temporaries cannot be passed by references offering modifiable access&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class REFERENCED&lowbar;TYPE&gt;
operator xref:BloombergLP/bslma/ManagedPtr_Ref.adoc[ManagedPtr&lowbar;Ref&lt;REFERENCED&lowbar;TYPE&gt;]();
----


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