Add another standard C++ prototype for string::compare.
Diff
legacy/gcc/libstdc++/std/bastring.h | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
@@ -408,17 +408,18 @@
basic_string substr (size_type pos = 0, size_type n = npos) const
{ return basic_string (*this, pos, n); }
int compare (const basic_string& str, size_type pos = 0, size_type n = npos) const;
int compare (const charT* s, size_type pos, size_type n) const;
int compare (const basic_string& str, size_type pos = 0, size_type n = npos) const;
int compare (size_type pos, size_type n, const charT* s) const
{ return compare(s, pos, n); }
int compare (const charT* s, size_type pos = 0) const
{ return compare (s, pos, traits::length (s)); }
int compare (size_type pos, size_type n, const basic_string& str) const
{ return compare(str, pos, n); }
iterator begin () { selfish (); return &(*this)[0]; }
iterator end () { selfish (); return &(*this)[length ()]; }