This struct provides a function-like shared pointer deleter that invokes delete with the passed pointer. If the template parameter is true, then the pointer is deleted using operator delete []. Otherwise, it is deleted using operator delete.
Declared in <bslstl_sharedptr.h>
template<bool>
struct SharedPtr_DefaultDeleter;
| Name | Description |
|---|---|
operator() | Call delete with the specified ptr. |
| Name | Description |
|---|---|
SharedPtr_DefaultDeleter<false> | This struct provides a function-like shared pointer deleter that invokes delete with the passed pointer. If the template parameter is true, then the pointer is deleted using operator delete []. Otherwise, it is deleted using operator delete. |
SharedPtr_DefaultDeleter<true> | This struct provides a function-like shared pointer deleter that invokes delete with the passed pointer. If the template parameter is true, then the pointer is deleted using operator delete []. Otherwise, it is deleted using operator delete. |