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
Name |
Description |
allocator |
allocator (or pool) that allocated |
p |
object to manage, or null |
Created with MrDocs