|
BDE 4.39.x Production Release
|
#include <bdlma_defaultdeleter.h>
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.
Public Member Functions | |
| DefaultDeleter (bslma::Allocator *basicAllocator=0) | |
| virtual | ~DefaultDeleter () |
| virtual void | deleteObject (TYPE *instance) |
Public Member Functions inherited from bdlma::Deleter< TYPE > | |
| virtual | ~Deleter () |
|
inline |
Create a default deleter. Optionally specify a basicAllocator used to manage the memory footprint of objects passed to the deleteObject method. If basicAllocator is 0, the currently installed default allocator is used.
|
virtual |
Destroy this default deleter.
|
inlinevirtual |
Destroy the specified instance based on its static type and return its memory footprint to the appropriate memory manager.
instance was supplied by the same allocator as is used by this default deleter. Implements bdlma::Deleter< TYPE >.