fs/AllocatedPath: add operator==

This commit is contained in:
Max Kellermann 2015-01-13 10:41:54 +01:00
parent ac7e0dfb77
commit b043b2a761
1 changed files with 10 additions and 0 deletions

View File

@ -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.