Commit b043b2a7 authored by Max Kellermann's avatar Max Kellermann

fs/AllocatedPath: add operator==

parent ac7e0dfb
...@@ -162,6 +162,16 @@ public: ...@@ -162,6 +162,16 @@ public:
return *this; 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 * Allows the caller to "steal" the internal value by
* providing a rvalue reference to the std::string attribute. * providing a rvalue reference to the std::string attribute.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment