[#bsl-operator_3way-086] = xref:bsl.adoc[bsl]::operator<=> :relfileprefix: ../ :mrdocs: Compare `lhs` and `rhs` three‐way by their stored pointers. == Synopsis Declared in `<bslstl_sharedptr.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class LHS_TYPE, class RHS_TYPE> std::strong_ordering operator<=>( xref:bsl/shared_ptr-0a.adoc[shared_ptr<LHS_TYPE>] const& lhs, xref:bsl/shared_ptr-0a.adoc[shared_ptr<RHS_TYPE>] const& rhs) noexcept; ---- == Description Perform a three‐way comparison of the specified `lhs` and the specified `rhs` pointers by using the comparison operators of `LHS_TYPE *` and `RHS_TYPE *`; return the result of that comparison. == Return Value three‐way comparison result of the stored pointers == Parameters [cols="1,4"] |=== | Name| Description | *lhs* | left‐hand side operand | *rhs* | right‐hand side operand |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#