Lexicographically compare this string with another sequence.
Synopsis
Declared in <bslstl_string.h>
template<class STRING_VIEW_LIKE_TYPE>
int
compare(
size_type position,
size_type numChars,
STRING_VIEW_LIKE_TYPE const& other) const;
Return Value
negative, zero, or positive according to the lexicographic order
Parameters
Name |
Description |
position |
starting index |
numChars |
number of characters |
other |
string or character sequence to compare or use |
Created with MrDocs