Set this deleter to the specified object, factory, and deleter.
Synopsis
Declared in <bslma_managedptrdeleter.h>
void
set(
void* object,
void* factory,
Deleter deleter);
Description
Set this ManagedPtrDeleter to refer 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