Cast ptr to MANAGED_TYPE * and delete it.
Declared in <bslma_managedptr.h>
static
void
deleter(
void* ptr,
void* cookie);
Cast the specified ptr to (template parameter) type MANAGED_TYPE *, and then call delete with the cast pointer.
| Name | Description |
|---|---|
| ptr | pointer to the managed object to delete |
| cookie | unused cookie pointer |