[#BloombergLP-bslma-ManagedPtr_Ref-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ManagedPtr_Ref.adoc[ManagedPtr&lowbar;Ref]::ManagedPtr&lowbar;Ref
:relfileprefix: ../../../
:mrdocs:

Create a `ManagedPtr&lowbar;Ref` object having the specified `base` value for its `base` attribute, and the specified `target` for its `target` attribute&period; Note that `target` (but not `base`) may be null&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
ManagedPtr&lowbar;Ref(
    xref:BloombergLP/bslma/ManagedPtr_Members.adoc[ManagedPtr&lowbar;Members]* base,
    TARGET&lowbar;TYPE* target);
----


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