Take ownership of *ptr with the specified deleter.

Synopsis

Declared in <bslma_managedptr.h>

template<
    class MANAGED_TYPE,
    class COOKIE_TYPE>
void
load(
    MANAGED_TYPE* ptr,
    COOKIE_TYPE* cookie,
    DeleterFunc deleter);

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 when the object is destroyed

deleter

function used to destroy the managed object

Created with MrDocs