|
@@ -218,6 +218,12 @@ public:
|
|
AK::swap(m_ptr, other.m_ptr);
|
|
AK::swap(m_ptr, other.m_ptr);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ bool operator==(NonnullRefPtr const& other) const { return m_ptr == other.m_ptr; }
|
|
|
|
+ bool operator!=(NonnullRefPtr const& other) const { return m_ptr != other.m_ptr; }
|
|
|
|
+
|
|
|
|
+ bool operator==(NonnullRefPtr& other) { return m_ptr == other.m_ptr; }
|
|
|
|
+ bool operator!=(NonnullRefPtr& other) { return m_ptr != other.m_ptr; }
|
|
|
|
+
|
|
// clang-format off
|
|
// clang-format off
|
|
private:
|
|
private:
|
|
NonnullRefPtr() = delete;
|
|
NonnullRefPtr() = delete;
|