[#BloombergLP-bslma-ManagedPtr_FactoryDeleter-deleter]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ManagedPtr_FactoryDeleter.adoc[ManagedPtr&lowbar;FactoryDeleter]::deleter
:relfileprefix: ../../../
:mrdocs:

Delete the specified `object` by invoking `deleteObject` on the specified `factory`, casting `object` to `OBJECT&lowbar;TYPE &ast;` and `factory` to `FACTORY &ast;`&period; The behavior is undefined unless `factory` points to an object of type `FACTORY`, and `object` points to a complete object of type `OBJECT&lowbar;TYPE` or `OBJECT&lowbar;TYPE` has a virtual destructor and `object` points to an object whose dynamic type derives from &apos;OBJECT&lowbar;TYPE&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
deleter(
    void* object,
    void* factory);
----


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