[#BloombergLP-bslstl-SharedPtrAllocateOutofplaceRep_InitProctor-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/SharedPtrAllocateOutofplaceRep_InitProctor.adoc[SharedPtrAllocateOutofplaceRep&lowbar;InitProctor]::SharedPtrAllocateOutofplaceRep&lowbar;InitProctor
:relfileprefix: ../../../
:mrdocs:

Create a proctor that manages `ptr` using the specified `deleter`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
SharedPtrAllocateOutofplaceRep&lowbar;InitProctor(
    TYPE* ptr,
    DELETER const& deleter);
----

== Description

Create a proctor managing the specified `ptr` and using the specified `deleter` to destroy `ptr` when the proctor is destroyed, unless it has been released from management by a call to `release`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ptr*
| address of the object managed by this proctor
| *deleter*
| deleter used to destroy `ptr` if this proctor is not released
|===


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