From 8c313dc336db53f1db28563190b01d415cf3d972 Mon Sep 17 00:00:00 2001 From: Baptiste Wicht Date: Sun, 2 Mar 2014 15:07:39 +0100 Subject: [PATCH] Add support for operator!= --- tstl/include/string.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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(){