bsl::operator<=>

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.

Synopsis

Declared in <bslstl_sharedptr.h>

template<class TYPE>
std::strong_ordering
operator<=>(
    shared_ptr<TYPE> const& ptr,
    nullptr_t nullPointerLiteral) noexcept;

Return Value

three-way comparison result of ptr and a null pointer

Parameters

NameDescription
ptrpointer to the object to manage or refer to
nullPointerLiteralnull-pointer literal (unused; selects this overload)