[#BloombergLP-bslstl-SharedPtr_DefaultDeleter-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/SharedPtr_DefaultDeleter-06.adoc[SharedPtr&lowbar;DefaultDeleter]&lt;false&gt;
:relfileprefix: ../../
:mrdocs:

Function&hyphen;like deleter that deletes a pointer with `delete` or `delete&lsqb;&rsqb;`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
struct xref:BloombergLP/bslstl/SharedPtr_DefaultDeleter-06.adoc[SharedPtr&lowbar;DefaultDeleter]&lt;false&gt;;
----

== Description

This `struct` provides a function&hyphen;like shared pointer deleter that invokes `delete` with the passed pointer&period; If the template parameter is `true`, then the pointer is deleted using `operator delete &lsqb;&rsqb;`&period; Otherwise, it is deleted using `operator delete`&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/SharedPtr_DefaultDeleter-0a/operator_call.adoc[`operator()`] 
| Call `delete` with the specified `ptr`&period;
|===



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