[#BloombergLP-bdlma-Deleter] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::Deleter :relfileprefix: ../../ :mrdocs: Provide a protocol (or pure interface) for a thread‐safe object deleter. == Synopsis Declared in `<bdlma_deleter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> class Deleter; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlma/Deleter/2destructor.adoc[`~Deleter`] [.small]#[destructor]# [.small]#[virtual]# | Destroy this object deleter. | xref:BloombergLP/bdlma/Deleter/deleteObject.adoc[`deleteObject`] [.small]#[virtual]# | Destroy the specified `instance` based on its static type and return its memory footprint to the appropriate memory manager. Note that a particular implementation is allowed to destroy this deleter itself. |=== == Derived Classes [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlma/DefaultDeleter.adoc[`DefaultDeleter`] | This `class` provides a default concrete implementation of the `Deleter` protocol. Instances of `DefaultDeleter<TYPE>` either use an allocator optionally supplied at construction, or the currently installed default allocator if an allocator is not provided. | xref:BloombergLP/bdlma/Factory.adoc[`Factory`] | This `class` provides a protocol (or pure interface) for a thread‐safe object creator and deleter. It extends the `Deleter` protocol with the addition of a `createObject` method. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#