[#BloombergLP-bslma-SharedPtrOutofplaceRep_DeleterHelper-deleteObject]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/SharedPtrOutofplaceRep_DeleterHelper.adoc[SharedPtrOutofplaceRep&lowbar;DeleterHelper]::deleteObject
:relfileprefix: ../../../
:mrdocs:

Delete the specified `ptr` using the specified `deleter`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class TYPE,
    class DELETER&gt;
static
void
deleteObject(
    TYPE* ptr,
    DELETER& deleter);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ptr*
| address of the shared object to delete
| *deleter*
| deleter used to destroy `ptr`
|===


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