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

Name

Description

ptr

address of the object managed by this proctor

deleter

deleter used to destroy ptr if this proctor is not released

Created with MrDocs