util/AllocatedString: add operator==(nullptr)
This commit is contained in:
parent
225984822d
commit
8ba3378096
|
@ -103,6 +103,14 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
constexpr bool operator==(std::nullptr_t other) const {
|
||||
return value == other;
|
||||
}
|
||||
|
||||
constexpr bool operator!=(std::nullptr_t other) const {
|
||||
return value != other;
|
||||
}
|
||||
|
||||
constexpr bool IsNull() const {
|
||||
return value == nullptr;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue