Create a ManagedPtrDeleter for the specified object, factory, and deleter.
Declared in <bslma_managedptrdeleter.h>
ManagedPtrDeleter(
void* object,
void* factory,
Deleter deleter);
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.
| Name | Description |
|---|---|
| object | Address of the object to be destroyed by the factory. |
| factory | Address of the factory responsible for destroying object. |
| deleter | Function that destroys object using factory. |