mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Added operators == and != for MemberProxy
				
					
				
			This commit is contained in:
		| @@ -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(); | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user