BloombergLP::bslma::ManagedPtr_DefaultDeleter::deleter

Cast ptr to MANAGED_TYPE * and delete it.

Synopsis

Declared in <bslma_managedptr.h>

static
void
deleter(
    void* ptr,
    void* cookie);

Description

Cast the specified ptr to (template parameter) type MANAGED_TYPE *, and then call delete with the cast pointer.

Parameters

NameDescription
ptrpointer to the managed object to delete
cookieunused cookie pointer