[#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:

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;

== 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] = 0,
    void* cookie = 0,
    xref:BloombergLP/bslma/ManagedPtr-0fa/DeleterFunc.adoc[DeleterFunc] deleter = 0);
----


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