Destroy and deallocate object using allocator.
Declared in <bslma_managedptr.h>
template<class ELEMENT_TYPE>
static
void
allocatorDeleter(
void* object,
void* allocator);
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.
| Name | Description |
|---|---|
| object | object to destroy and deallocate |
| allocator | allocator that supplied memory for object |