]> git.tdb.fi Git - libs/core.git/blobdiff - source/fs/path.h
Add other comparison operators to FS::Path
[libs/core.git] / source / fs / path.h
index c3c599a9e03d0a0dae8b9e47187086b49b407d1a..c701e60f7fb97dbf507cf0295ea13adefb32aec1 100644 (file)
@@ -80,6 +80,12 @@ public:
        std::string operator[](int) const;
 
        bool operator==(const Path &) const;
+       bool operator<(const Path &) const;
+       bool operator>(const Path &) const;
+       bool operator<=(const Path &other) const { return !(*this>other); }
+       bool operator>=(const Path &other) const { return !(*this<other); }
+       bool operator!=(const Path &other) const { return !(*this==other); }
+
        Iterator begin() const;
        Iterator end() const;
 };