[#bsl-operator_3way-086]
= xref:bsl.adoc[bsl]::operator&lt;&equals;&gt;
:relfileprefix: ../
:mrdocs:

Compare `lhs` and `rhs` three&hyphen;way by their stored pointers&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;sharedptr&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class LHS&lowbar;TYPE,
    class RHS&lowbar;TYPE&gt;
std::strong&lowbar;ordering
operator&lt;&equals;&gt;(
    xref:bsl/shared_ptr-0a.adoc[shared&lowbar;ptr&lt;LHS&lowbar;TYPE&gt;] const& lhs,
    xref:bsl/shared_ptr-0a.adoc[shared&lowbar;ptr&lt;RHS&lowbar;TYPE&gt;] const& rhs) noexcept;
----

== Description

Perform a three&hyphen;way comparison of the specified `lhs` and the specified `rhs` pointers by using the comparison operators of `LHS&lowbar;TYPE &ast;` and `RHS&lowbar;TYPE &ast;`&semi; return the result of that comparison&period;

== Return Value

three&hyphen;way comparison result of the stored pointers

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| left&hyphen;hand side operand
| *rhs*
| right&hyphen;hand side operand
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
