BloombergLP::bdlma::Deleter

Provide a protocol (or pure interface) for a thread-safe object deleter.

Synopsis

Declared in <bdlma_deleter.h>

template<class TYPE>
class Deleter;

Member Functions

NameDescription
~Deleter [destructor] [virtual]Destroy this object deleter.
deleteObject [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

NameDescription
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.
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.