|
BDE 4.39.x Production Release
|
#include <bslma_managedptr_factorydeleter.h>
This utility provides a general deleter for factories that provide a deleteObject operation (e.g., bslma::Allocator, bdlma::Pool).
Static Public Member Functions | |
| static void | deleter (void *object, void *factory) |
|
inlinestatic |
Delete the specified object by invoking deleteObject on the specified factory, casting object to OBJECT_TYPE * and factory to FACTORY *.
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.