aboutsummaryrefslogtreecommitdiff
path: root/strbuf.h
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-23 12:23:39 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-23 12:23:39 +0100
commita56dedbe9807286928fc56fbb489fa637b4b7e80 (patch)
tree02fcc6104cea8e71114eb00d5c36ada77d281194 /strbuf.h
parentSomething. (diff)
downloadcalp-a56dedbe9807286928fc56fbb489fa637b4b7e80.tar.gz
calp-a56dedbe9807286928fc56fbb489fa637b4b7e80.tar.xz
Even more work.
Diffstat (limited to 'strbuf.h')
-rw-r--r--strbuf.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/strbuf.h b/strbuf.h
index 13c030dd..24dd8328 100644
--- a/strbuf.h
+++ b/strbuf.h
@@ -26,6 +26,13 @@ struct strbuf {
~strbuf ();
strbuf& operator=(strbuf& other);
+
+ bool operator==(strbuf& other);
+ bool operator==(const char* other);
+ bool operator!=(strbuf& other)
+ { return ! (*this == other); }
+ bool operator!=(const char* other)
+ { return ! (*this == other); }
};
/*