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

Perform a lexicographic three&hyphen;way comparison of the specified `lhs` and the specified `rhs` strings by using `CHAR&lowbar;TRAITS&colon;&colon;eq` on each character&semi; return the result of that comparison&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class CHAR&lowbar;TYPE,
    class CHAR&lowbar;TRAITS,
    class ALLOC&gt;
xref:bsl/String_ComparisonCategoryType.adoc[bsl::String&lowbar;ComparisonCategoryType&lt;CHAR&lowbar;TRAITS&gt;]
operator&lt;&equals;&gt;(
    xref:bsl/basic_string-0faf.adoc[basic&lowbar;string&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS, ALLOC&gt;] const& lhs,
    xref:bsl/basic_string-0faf.adoc[basic&lowbar;string&lt;CHAR&lowbar;TYPE, CHAR&lowbar;TRAITS, ALLOC&gt;] const& rhs) noexcept;
----


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