Create a proctor referring to the specified ptr and using the specified deleter to destroy ptr when the proctor is destroyed.

Synopsis

Declared in <bslma_sharedptroutofplacerep.h>

SharedPtrOutofplaceRep_InitProctor(
    TYPE* ptr,
    DELETER const& deleter);

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