diff options
author | Nicolas Catania <niko@google.com> | 2010-02-08 14:13:47 -0800 |
---|---|---|
committer | Nicolas Catania <niko@google.com> | 2010-02-08 20:41:39 -0800 |
commit | 6309a85f3be27b49451e37d0b31446e0cf727f23 (patch) | |
tree | dd47e89f93544ea4aed1bc1ace8197b187209025 /include | |
parent | cb8eb8e1390d1343563a55c117b5c39cfa87fe1d (diff) | |
download | astl-6309a85f3be27b49451e37d0b31446e0cf727f23.tar.gz |
Added <,>,<= and >= operators functions for strings.
Diffstat (limited to 'include')
-rw-r--r-- | include/string | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/string b/include/string index e7fe904..dccd5ac 100644 --- a/include/string +++ b/include/string @@ -306,6 +306,15 @@ class string size_type mLength; // len of the string excl. null-terminator. }; +// Comparaison: +bool operator<(const string& lhs, const string& rhs); +bool operator<=(const string& lhs, const string& rhs); +bool operator>(const string& lhs, const string& rhs); +bool operator>=(const string& lhs, const string& rhs); + +// Swap +void swap(string& lhs, string& rhs); + // I/O ostream& operator<<(ostream& os, const string& str); |