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

Name

Description

ptr

pointer to the object to manage or refer to

nullPointerLiteral

null‐pointer literal (unused; selects this overload)

Created with MrDocs