BDE 4.14.0 Production release
|
#include <bdlma_defaultdeleter.h>
Public Member Functions | |
DefaultDeleter (bslma::Allocator *basicAllocator=0) | |
virtual | ~DefaultDeleter () |
Destroy this default deleter. | |
virtual void | deleteObject (TYPE *instance) |
Public Member Functions inherited from bdlma::Deleter< TYPE > | |
virtual | ~Deleter () |
Destroy this object deleter. | |
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.
|
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 |
|
inlinevirtual |
Destroy the specified instance
based on its static type and return its memory footprint to the appropriate memory manager. The behavior is undefined unless the memory for the footprint of instance
was supplied by the same allocator as is used by this default deleter. Note that this method does not destroy the deleter itself.
Implements bdlma::Deleter< TYPE >.