Create a proctor to manage an object allocated from the specified allocator.
Declared in <bslma_deleteobjectproctor.h>
DeleteObjectProctor(
ALLOCATOR const& allocator,
PtrType p);
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.
| Name | Description |
|---|---|
| allocator | allocator (or pool) that allocated p |
| p | object to manage, or null |