[#bsl-operator_3way-0412] = xref:bsl.adoc[bsl]::operator<=> :relfileprefix: ../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> std::strong_ordering operator<=>( xref:bsl/shared_ptr-0a.adoc[shared_ptr<TYPE>] const& ptr, xref:bsl/nullptr_t-08.adoc[nullptr_t] nullPointerLiteral) noexcept; ---- == Return Value three‐way comparison result of `ptr` and a null pointer == Parameters [cols="1,4"] |=== | Name| Description | *ptr* | pointer to the object to manage or refer to | *nullPointerLiteral* | null‐pointer literal (unused; selects this overload) |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#