[#BloombergLP-bslma-ManagedPtrDeleter-2constructor-038]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ManagedPtrDeleter.adoc[ManagedPtrDeleter]::ManagedPtrDeleter
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

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

Create a default `ManagedPtrDeleter` object that does not refer to any object or factory instance&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslma/ManagedPtrDeleter/2constructor-03a.adoc[ManagedPtrDeleter]();
----

[.small]#xref:BloombergLP/bslma/ManagedPtrDeleter/2constructor-03a.adoc[_» more&period;&period;&period;_]#

Create a `ManagedPtrDeleter` for the specified object, factory, and deleter&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslma/ManagedPtrDeleter/2constructor-0f.adoc[ManagedPtrDeleter](
    void* object,
    void* factory,
    xref:BloombergLP/bslma/ManagedPtrDeleter/Deleter-03.adoc[Deleter] deleter);
----

[.small]#xref:BloombergLP/bslma/ManagedPtrDeleter/2constructor-0f.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *object*
| Address of the object to be destroyed by the factory&period;
| *factory*
| Address of the factory responsible for destroying `object`&period;
| *deleter*
| Function that destroys `object` using `factory`&period;
|===


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