Instantiated member variants
compare
Template: std::char_traits<T>
Specializations:
charwchar_tchar8_tchar16_tchar32_t
Min standard notice:
Compares the first count characters of the character strings s1 and s2. The comparison is done lexicographically.
# Declarations
static int compare( const char_type* s1, const char_type* s2,
std::size_t count );
(constexpr since C++17)
# Parameters
s1, s2: pointers to character strings to comparecount: the number of characters to compare from each character string
# Return value
Negative value if s1 is less than s2.