diff --git a/tstl/include/string.hpp b/tstl/include/string.hpp index 3240e63c..a5f83398 100644 --- a/tstl/include/string.hpp +++ b/tstl/include/string.hpp @@ -245,6 +245,10 @@ public: return true; } + bool operator!=(const CharT* s) const { + return !(*this == s); + } + bool operator==(const basic_string& rhs) const { if(size() != rhs.size()){ return false; @@ -259,6 +263,10 @@ public: return true; } + bool operator!=(const basic_string& rhs) const { + return !(*this == rhs); + } + //Iterators iterator begin(){