Constructs a SharedPtr with element as the pointer to the managed object.
Uses the specified deleter as the deleter. The expression deleter(element) must be well formed, have well-defined behavior and not throw any exceptions.
The construction of deleter and of the stored deleter from d must not throw exceptions.
Constructs a SharedPtr with element as the pointer to the managed object.
Uses the specified deleter as the deleter. The expression deleter(element) must be well formed, have well-defined behavior and not throw any exceptions. The construction of deleter and of the stored deleter from d must not throw exceptions.