Destroy and deallocate object using allocator.
Synopsis
Declared in <bslma_managedptr.h>
template<class ELEMENT_TYPE>
static
void
allocatorDeleter(
void* object,
void* allocator);
Description
Make use of AllocatorUtil::deleteObject to destroy and deallocate the specified object using the specified allocator. The behavior is undefined unless allocator is an instance of bslma::Allocator that was used to supply memory for object and object points to an instance of ELEMENT_TYPE that is within its lifetime.
Parameters
Name |
Description |
object |
object to destroy and deallocate |
allocator |
allocator that supplied memory for |
Created with MrDocs