[#bsl-shared_ptr-0a-2constructor-02]
= xref:bsl.adoc[bsl]::xref:bsl/shared_ptr-0a.adoc[shared&lowbar;ptr]::shared&lowbar;ptr
:relfileprefix: ../../
:mrdocs:

Create an empty shared pointer&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;sharedptr&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
shared&lowbar;ptr(
    xref:bsl/nullptr_t-08.adoc[nullptr&lowbar;t] nullPointerLiteral,
    xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]* basicAllocator);
----

== Description

Create an empty shared pointer&period; The specified `nullPointerLiteral` and `basicAllocator` are not used&period; Note that use of this constructor is equivalent to calling the default constructor&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *nullPointerLiteral*
| null&hyphen;pointer literal (unused&semi; selects this overload)
| *basicAllocator*
| allocator used to supply memory
|===


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