Perform a three-way comparison of the specified ptr and null pointer by using the comparison operators of TYPE *; return the result of that comparison.
Declared in <bslstl_sharedptr.h>
template<class TYPE>
std::strong_ordering
operator<=>(
shared_ptr<TYPE> const& ptr,
nullptr_t nullPointerLiteral) noexcept;
three-way comparison result of ptr and a null pointer
| Name | Description |
|---|---|
| ptr | pointer to the object to manage or refer to |
| nullPointerLiteral | null-pointer literal (unused; selects this overload) |