cpp/memory/shared ptr/get deleter

Access to the 's deleter. If the shared pointer owns a deleter of type cv-unqualified  (e.g. if it was created with one of the constructors that take a deleter as a parameter), then returns a pointer to the deleter. Otherwise, returns a null pointer.

Return value
A pointer to the owned deleter or. The returned pointer is valid at least as long as there remains at least one std instance that owns it.