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