diff options
author | Max Kellermann <max@duempel.org> | 2015-01-13 10:41:54 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-01-13 10:42:29 +0100 |
commit | b043b2a761dd151934b6b83b760584c0293a56b9 (patch) | |
tree | 5c2643d28abd03be5cdc0b72783b8c2f47916133 /src/fs/AllocatedPath.hxx | |
parent | ac7e0dfb77005aa24ed3a569e1321b0de8465f4c (diff) | |
download | mpd-b043b2a761dd151934b6b83b760584c0293a56b9.tar.gz mpd-b043b2a761dd151934b6b83b760584c0293a56b9.tar.xz mpd-b043b2a761dd151934b6b83b760584c0293a56b9.zip |
fs/AllocatedPath: add operator==
Diffstat (limited to '')
-rw-r--r-- | src/fs/AllocatedPath.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx index 837c9b66b..7195a3345 100644 --- a/src/fs/AllocatedPath.hxx +++ b/src/fs/AllocatedPath.hxx @@ -162,6 +162,16 @@ public: return *this; } + gcc_pure + bool operator==(const AllocatedPath &other) const { + return value == other.value; + } + + gcc_pure + bool operator!=(const AllocatedPath &other) const { + return value != other.value; + } + /** * Allows the caller to "steal" the internal value by * providing a rvalue reference to the std::string attribute. |