Commit 95d5efbf authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

java/Ref: add nullptr comparison

parent c33f206c
......@@ -85,6 +85,14 @@ public:
return value != nullptr;
}
bool operator==(std::nullptr_t n) const noexcept {
return value == n;
}
bool operator!=(std::nullptr_t n) const noexcept {
return !(*this == n);
}
T Get() const noexcept {
return value;
}
......
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