Reset this object to manage the specified object and deleter.
Declared in <bslma_managedptr_members.h>
void
set(
void* object,
void* factory,
DeleterFunc deleter);
Reset this object to have the specified object, factory, and deleter with no effect on the previously managed object (if any). The object does not manage a pointer if 0 == object. The behavior is undefined unless object is null if deleter is null.
| Name | Description |
|---|---|
| object | address of the object to manage, or 0 |
| factory | address of the factory used by deleter |
| deleter | function used to destroy the managed object |