[#BloombergLP-bslma-ManagedPtr-0fa-load-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ManagedPtr-0fa.adoc[ManagedPtr]::load
:relfileprefix: ../../../
:mrdocs:

Reset this managed pointer to empty&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
load(
    xref:bsl/nullptr_t-08.adoc[bsl::nullptr&lowbar;t] nullPointerLiteral = 0,
    void* cookie = 0,
    xref:BloombergLP/bslma/ManagedPtr-0fa/DeleterFunc.adoc[DeleterFunc] deleter = 0);
----

== Description

Destroy the current managed object (if any) and reset this managed pointer to empty&period; Note that the optionally specified `cookie` and `deleter` will be ignored, as empty managed pointers do not invoke a deleter&period;

== Parameters

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


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