Return a pointer to the deleter of type DELETER used by p, or null.
Declared in <bslstl_sharedptr.h>
template<
class DELETER,
class ELEMENT_TYPE>
DELETER*
get_deleter(shared_ptr<ELEMENT_TYPE> const& p) noexcept;
Return the address of deleter used by the specified p shared pointer if the (template parameter) type DELETER is the type of the deleter installed in p, and a null pointer value otherwise.
pointer to the DELETER used by p, or null
| Name | Description |
|---|---|
| p | shared pointer whose deleter is queried |