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

Destroy the current managed object (if any) and 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
clear();
----

== Description

DEPRECATED&colon; Use `reset` instead&period;


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