Lexicographically compare this string with the specified other string, and return a negative value if this string is less than other, a positive value if it is greater than other, and 0 in case of equality. CHAR_TRAITS::lt is used to compare characters. See {Lexicographical Comparisons}.
Declared in <bslstl_string.h>
int
compare(basic_string<char16_t> const& other) const noexcept;