Create a ManagedPtrDeleter for the specified object, factory, and deleter.
Synopsis
Declared in <bslma_managedptrdeleter.h>
ManagedPtrDeleter(
void* object,
void* factory,
Deleter deleter);
Description
Create a ManagedPtrDeleter object that refers to the object and factory instances located at the specified object and factory memory locations, and the specified deleter. The behavior is undefined unless deleter is either 0, or points to a function whose behavior is defined if called once with object and factory as arguments.
Parameters
Name |
Description |
object |
Address of the object to be destroyed by the factory. |
factory |
Address of the factory responsible for destroying |
deleter |
Function that destroys |
Created with MrDocs