[#BloombergLP-bslma-ManagedPtr-0fa-2constructor-012]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ManagedPtr-0fa.adoc[ManagedPtr]::ManagedPtr
:relfileprefix: ../../../
:mrdocs:

Create an empty managed pointer from two null&hyphen;pointer literals&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
ManagedPtr(
    xref:bsl/nullptr_t-08.adoc[bsl::nullptr&lowbar;t] nullPointerLiteral,
    xref:bsl/nullptr_t-08.adoc[bsl::nullptr&lowbar;t] cookieNullPointerLiteral);
----

== Description

Create an empty managed pointer&period; Note that this constructor is necessary to match null&hyphen;pointer literal arguments, in order to break ambiguities and provide valid type deduction with the other constructor templates in this class&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *nullPointerLiteral*
| null&hyphen;pointer literal (unused&semi; selects this overload)
| *cookieNullPointerLiteral*
| null&hyphen;pointer literal (unused&semi; selects this overload)
|===


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