util/AllocatedString: add operator==(nullptr)
This commit is contained in:
@@ -103,6 +103,14 @@ public:
|
|||||||
return *this;
|
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 {
|
constexpr bool IsNull() const {
|
||||||
return value == nullptr;
|
return value == nullptr;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user