Compare lhs and rhs three-way by their stored pointers.
Declared in <bslstl_sharedptr.h>
template<
class LHS_TYPE,
class RHS_TYPE>
std::strong_ordering
operator<=>(
shared_ptr<LHS_TYPE> const& lhs,
shared_ptr<RHS_TYPE> const& rhs) noexcept;
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.
three-way comparison result of the stored pointers
| Name | Description |
|---|---|
| lhs | left-hand side operand |
| rhs | right-hand side operand |