[#BloombergLP-bslstl-SharedPtrAllocateOutofplaceRep_InitProctor-2constructor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/SharedPtrAllocateOutofplaceRep_InitProctor.adoc[SharedPtrAllocateOutofplaceRep_InitProctor]::SharedPtrAllocateOutofplaceRep_InitProctor :relfileprefix: ../../../ :mrdocs: Create a proctor that manages `ptr` using the specified `deleter`. == Synopsis Declared in `<bslstl_sharedptrallocateoutofplacerep.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- SharedPtrAllocateOutofplaceRep_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`. == 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]#