BloombergLP::bslma::DeleteObjectProctor::DeleteObjectProctor

Create a proctor to manage an object allocated from the specified allocator.

Synopsis

Declared in <bslma_deleteobjectproctor.h>

DeleteObjectProctor(
    ALLOCATOR const& allocator,
    PtrType p);

Description

Create a proctor to manage the specified p object, which has been allocated from the specified allocator. If p is null, then the created proctor is disengaged (manages no object). The behavior is undefined if p is non-null but not allocated from allocator.

Parameters

NameDescription
allocatorallocator (or pool) that allocated p
pobject to manage, or null