[#BloombergLP-bslma-ManagedPtr_DefaultDeleter]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::ManagedPtr&lowbar;DefaultDeleter
:relfileprefix: ../../
:mrdocs:

This `struct` provides a function&hyphen;like managed pointer deleter that invokes `delete` with the passed pointer&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class MANAGED&lowbar;TYPE&gt;
struct ManagedPtr&lowbar;DefaultDeleter;
----

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslma/ManagedPtr_DefaultDeleter/deleter.adoc[`deleter`] 
| Cast `ptr` to `MANAGED&lowbar;TYPE &ast;` and delete it&period;
|===



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