Perform a lexicographic three‐way comparison of two strings.
Synopsis
Declared in <bslstl_string.h>
template<
class CHAR_TYPE,
class CHAR_TRAITS,
class ALLOC>
bsl::String_ComparisonCategoryType<CHAR_TRAITS>
operator<=>(
basic_string<CHAR_TYPE, CHAR_TRAITS, ALLOC> const& lhs,
CHAR_TYPE const* rhs);
Return Value
ordering result of the lexicographic three‐way comparison
Parameters
Name |
Description |
lhs |
left‐hand operand |
rhs |
right‐hand operand |
Created with MrDocs