mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Added JsonVariant::is<JsonVariant>() (issue #1412)
				
					
				
			This commit is contained in:
		| @@ -112,6 +112,15 @@ class VariantRefBase : public VariantTag { | ||||
|   is() const { | ||||
|     return variantIsObject(_data); | ||||
|   } | ||||
|   // | ||||
|   // bool is<VariantRef> const; | ||||
|   // bool is<const VariantRef> const; | ||||
|   template <typename T> | ||||
|   FORCE_INLINE typename enable_if< | ||||
|       is_same<typename remove_const<T>::type, VariantRef>::value, bool>::type | ||||
|   is() const { | ||||
|     return !!_data; | ||||
|   } | ||||
| #if ARDUINOJSON_HAS_NULLPTR | ||||
|   // | ||||
|   // bool is<nullptr_t> const; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user