diff options
Diffstat (limited to 'src/filepath.cpp')
-rw-r--r-- | src/filepath.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/filepath.cpp b/src/filepath.cpp index 6ff48526..caaf7da5 100644 --- a/src/filepath.cpp +++ b/src/filepath.cpp @@ -63,6 +63,26 @@ bool Filepath::operator!=(const Filepath& other) const return !(*this == other); } +bool Filepath::operator<(const Filepath& other) const +{ + return filepath::bridged::less_than(*rs_object, *other.rs_object); +} + +bool Filepath::operator<=(const Filepath& other) const +{ + return !(*this > other); +} + +bool Filepath::operator>(const Filepath& other) const +{ + return !(*this < other) && (*this != other); +} + +bool Filepath::operator>=(const Filepath& other) const +{ + return !(*this < other); +} + void Filepath::push(const Filepath& component) { filepath::bridged::push(*rs_object, *component.rs_object); |