Added operators == and != for MemberProxy

This commit is contained in:
Benoit Blanchon committed 2019-07-19 10:23:06 +02:00
1 parent aba42faf69
commit 7ce1039d7c
4 files changed
+36 -1

No files matched your search

+8
View File
@@ -49,6 +49,14 @@ class MemberProxy : public VariantOperators<MemberProxy<TObject, TStringRef> >,
return *this;
}
FORCE_INLINE bool operator==(VariantConstRef rhs) const {
return static_cast<VariantConstRef>(getUpstreamMember()) == rhs;
}
FORCE_INLINE bool operator!=(VariantConstRef rhs) const {
return static_cast<VariantConstRef>(getUpstreamMember()) != rhs;
}
FORCE_INLINE void clear() const {
getUpstreamMember().clear();
}