BloombergLP::bslma::ManagedPtr_FactoryDeleter::deleter

Delete the specified object using the specified factory.

Synopsis

Declared in <bslma_managedptr_factorydeleter.h>

static
void
deleter(
    void* object,
    void* factory);

Description

Delete the specified object by invoking deleteObject on the specified factory, casting object to OBJECT_TYPE * and factory to FACTORY *. The behavior is undefined unless factory points to an object of type FACTORY, and object points to a complete object of type OBJECT_TYPE or OBJECT_TYPE has a virtual destructor and object points to an object whose dynamic type derives from OBJECT_TYPE.

Parameters

NameDescription
objectaddress of the object to destroy
factoryfactory that provides deleteObject