Create a raw deleter guard that manages the specified object.
Synopsis
Declared in <bslma_rawdeleterguard.h>
RawDeleterGuard(
TYPE* object,
ALLOCATOR* allocator);
Description
Create a raw deleter guard that unconditionally manages the specified object, and that uses the specified allocator to delete object upon the destruction of this guard. The behavior is undefined unless object and allocator are non‐zero, and allocator supplied the memory for object. Note that allocator must remain valid throughout the lifetime of this guard.
Parameters
Name |
Description |
object |
The address of the object to manage. |
allocator |
The allocator used to delete the managed object. |
Created with MrDocs