[#BloombergLP-bslma-ManagedPtr_FactoryDeleter] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::ManagedPtr_FactoryDeleter :relfileprefix: ../../ :mrdocs: This utility provides a general deleter for factories that provide a `deleteObject` operation (e.g., `bslma::Allocator`, `bdlma::Pool`). == Synopsis Declared in `<bslma_managedptr_factorydeleter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class OBJECT_TYPE, class FACTORY> struct ManagedPtr_FactoryDeleter; ---- == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslma/ManagedPtr_FactoryDeleter/deleter.adoc[`deleter`] | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#