Provide a default concrete implementation of the Deleter protocol.

Synopsis

Declared in <bdlma_defaultdeleter.h>

template<class TYPE>
class DefaultDeleter
    : public Deleter<TYPE>

Description

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.

Base Classes

Name

Description

Deleter<TYPE>

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

Member Functions

Name

Description

DefaultDeleter [constructor]

Create a default deleter.

~DefaultDeleter [destructor] [virtual]

Destroy this default deleter.

deleteObject [virtual]

Destroy the specified instance and release its memory.

Created with MrDocs