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

`load` overloads

== Synopses

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

Reset this `shared&lowbar;ptr` from the specified arguments&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class COMPATIBLE&lowbar;TYPE&gt;
void
xref:bsl/shared_ptr-0a/load-0b.adoc[load](COMPATIBLE&lowbar;TYPE* ptr);
----

[.small]#xref:bsl/shared_ptr-0a/load-0b.adoc[_» more&period;&period;&period;_]#

Reset this `shared&lowbar;ptr` from the specified arguments&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class COMPATIBLE&lowbar;TYPE&gt;
void
xref:bsl/shared_ptr-0a/load-00.adoc[load](
    COMPATIBLE&lowbar;TYPE* ptr,
    xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]* basicAllocator);
----

[.small]#xref:bsl/shared_ptr-0a/load-00.adoc[_» more&period;&period;&period;_]#

Reset this `shared&lowbar;ptr` to manage `ptr` with a deleter and allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class COMPATIBLE&lowbar;TYPE,
    class DELETER&gt;
void
xref:bsl/shared_ptr-0a/load-0f.adoc[load](
    COMPATIBLE&lowbar;TYPE* ptr,
    DELETER const& deleter,
    xref:BloombergLP/bslma/Allocator.adoc[BloombergLP::bslma::Allocator]* basicAllocator);
----

[.small]#xref:bsl/shared_ptr-0a/load-0f.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ptr*
| pointer to the object to manage or refer to
| *basicAllocator*
| allocator used to supply memory
| *deleter*
| deleter invoked when the last shared reference is released
|===


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