system/FileDescriptor: add operator!=

This commit is contained in:
Max Kellermann 2018-08-20 16:49:14 +02:00
parent 5e512763d3
commit 5487d40be9

View File

@ -65,6 +65,10 @@ public:
return fd == other.fd;
}
constexpr bool operator!=(FileDescriptor other) const noexcept {
return !(*this == other);
}
constexpr bool IsDefined() const noexcept {
return fd >= 0;
}