Take ownership of *ptr with the specified deleter.
Declared in <bslma_managedptr.h>
template<
class MANAGED_TYPE,
class COOKIE_TYPE>
void
load(
MANAGED_TYPE* ptr,
COOKIE_TYPE* cookie,
DeleterFunc deleter);
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 |