Take ownership of *ptr with the specified deleter.
Declared in <bslma_managedptr.h>
template<
class MANAGED_TYPE,
class MANAGED_BASE>
void
load(
MANAGED_TYPE* ptr,
void* cookie,
void(* deleter)(MANAGED_BASE*, void*));
DEPRECATED: Use the non-template load overload instead.
| Name | Description |
|---|---|
| ptr | pointer to the object to manage, or null |
| cookie | cookie passed to deleter when the object is destroyed |
| deleter | function used to destroy the managed object |