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