[#BloombergLP-bslma-SharedPtrOutofplaceRep_InitProctor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::SharedPtrOutofplaceRep&lowbar;InitProctor
:relfileprefix: ../../
:mrdocs:

This proctor is used for out&hyphen;of&hyphen;place shared pointer instantiations&period; Generally, a proctor is created prior to constructing a `SharedPtrOutofplaceRep` and released after successful construction&period; In the event that an exception is thrown during construction of the representation, the proctor will delete the provided pointer using the provided deleter&period; Note that the provided deleter is held by reference and must remain valid for the lifetime of the proctor&period; If the proctor is not released before it&apos;s destruction, a copy of the deleter is instantiated to delete the pointer (in case `operator()` is non&hyphen;`const`)&period; Also note that if the deleter throws during copy construction, the provided pointer will not be destroyed&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;
struct SharedPtrOutofplaceRep&lowbar;InitProctor;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslma/SharedPtrOutofplaceRep_InitProctor/2constructor.adoc[`SharedPtrOutofplaceRep&lowbar;InitProctor`]         [.small]#[constructor]#
| Create a proctor referring to the specified `ptr` and using the specified `deleter` to destroy `ptr` when the proctor is destroyed&period;
| xref:BloombergLP/bslma/SharedPtrOutofplaceRep_InitProctor/2destructor.adoc[`&#126;SharedPtrOutofplaceRep&lowbar;InitProctor`] [.small]#[destructor]#
| Destroy this proctor and the object (if any) referred to by this proctor&period;
| xref:BloombergLP/bslma/SharedPtrOutofplaceRep_InitProctor/release.adoc[`release`] 
| Release from management the object referred to by this proctor&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslma/SharedPtrOutofplaceRep_InitProctor/d_deleter.adoc[`d&lowbar;deleter`] 
| deleter used to destroy managed object
| xref:BloombergLP/bslma/SharedPtrOutofplaceRep_InitProctor/d_ptr_p.adoc[`d&lowbar;ptr&lowbar;p`] 
| address of the managed object (held, not
|===



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