BloombergLP::bslstl::SharedPtrAllocateOutofplaceRep_InitProctor::SharedPtrAllocateOutofplaceRep_InitProctor

Create a proctor that manages ptr using the specified deleter.

Synopsis

Declared in <bslstl_sharedptrallocateoutofplacerep.h>

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

NameDescription
ptraddress of the object managed by this proctor
deleterdeleter used to destroy ptr if this proctor is not released