BloombergLP::bslma::ManagedPtr::load

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

NameDescription
ptrpointer to the object to manage, or null
cookiecookie passed to deleter when the object is destroyed
deleterfunction used to destroy the managed object