Add support for operator!=

This commit is contained in:
Baptiste Wicht 2014-03-02 15:07:39 +01:00
parent ace9a013ad
commit 8c313dc336

View File

@ -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(){