[#bsl-operator_3way-0d7] = xref:bsl.adoc[bsl]::operator<=> :relfileprefix: ../ :mrdocs: Perform a lexicographic three‐way comparison of the specified `lhs` string and the specified `rhs` C‐string by using `CHAR_TRAITS::eq` on each character; return the result of that comparison. == Synopsis Declared in `<bslstl_string.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class CHAR_TYPE, class CHAR_TRAITS, class ALLOC> xref:bsl/String_ComparisonCategoryType.adoc[bsl::String_ComparisonCategoryType<CHAR_TRAITS>] operator<=>( xref:bsl/basic_string-0faf.adoc[basic_string<CHAR_TYPE, CHAR_TRAITS, ALLOC>] const& lhs, CHAR_TYPE const* rhs); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#