mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
C++: operator== for VRc
This commit is contained in:
parent
788a882c80
commit
c7664f11ac
1 changed files with 7 additions and 0 deletions
|
@ -128,6 +128,13 @@ public:
|
|||
VRc<VTable, Dyn> into_dyn() const { return *reinterpret_cast<const VRc<VTable, Dyn> *>(this); }
|
||||
|
||||
VRef<VTable> borrow() const { return { inner->vtable, inner->data_ptr() }; }
|
||||
|
||||
friend bool operator==(const VRc &a, const VRc &b) {
|
||||
return a.inner == b.inner;
|
||||
}
|
||||
friend bool operator!=(const VRc &a, const VRc &b) {
|
||||
return a.inner == b.inner;
|
||||
}
|
||||
};
|
||||
|
||||
template<typename VTable, typename X = Dyn>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue