int compare(const basic_string& str) const;
int compare(size_type p0, size_type n0,
const basic_string& str);
int compare(size_type p0, size_type n0,
const basic_string& str, size_type pos, size_type n);
int compare(const E *s) const;
int compare(size_type p0, size_type n0,
const E *s) const;
int compare(size_type p0, size_type n0,
const E *s, size_type pos) const;
Each member function compares up to n0
elements of the controlled sequence beginning with position p0
, or the
entire controlled sequence if these arguments are not supplied, to the operand sequence. The function returns:
T::
compare
), or if the two have a common prefix but the
operand sequence is longer.