java/Ref: add nullptr comparison
This commit is contained in:
parent
c33f206ce8
commit
95d5efbfe6
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user