system/FileDescriptor: add operator!=
This commit is contained in:
parent
5e512763d3
commit
5487d40be9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user