Return a pointer to the deleter of type DELETER used by p, or null.
Synopsis
Declared in <bslstl_sharedptr.h>
template<
class DELETER,
class ELEMENT_TYPE>
DELETER*
get_deleter(shared_ptr<ELEMENT_TYPE> const& p) noexcept;
Description
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.
Return Value
pointer to the DELETER used by p, or null
Parameters
Name |
Description |
p |
shared pointer whose deleter is queried |
Created with MrDocs