mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			46 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| // Copyright Benoit Blanchon 2014-2017
 | |
| // MIT License
 | |
| //
 | |
| // Arduino JSON library
 | |
| // https://bblanchon.github.io/ArduinoJson/
 | |
| // If you like this project, please add a star!
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include "../Configuration.hpp"
 | |
| 
 | |
| namespace ArduinoJson {
 | |
| namespace Internals {
 | |
| 
 | |
| template <typename TString, typename Enable = void>
 | |
| struct StringTraits {};
 | |
| 
 | |
| template <typename TString>
 | |
| struct StringTraits<const TString, void> : StringTraits<TString> {};
 | |
| 
 | |
| template <typename TString>
 | |
| struct StringTraits<TString&, void> : StringTraits<TString> {};
 | |
| }
 | |
| }
 | |
| 
 | |
| #include "ArduinoStream.hpp"
 | |
| #include "CharPointer.hpp"
 | |
| #include "FlashString.hpp"
 | |
| #include "StdStream.hpp"
 | |
| #include "StdString.hpp"
 | |
| 
 | |
| namespace ArduinoJson {
 | |
| namespace TypeTraits {
 | |
| template <typename T, typename Enable = void>
 | |
| struct IsString {
 | |
|   static const bool value = false;
 | |
| };
 | |
| 
 | |
| template <typename T>
 | |
| struct IsString<T, typename TypeTraits::EnableIf<
 | |
|                        Internals::StringTraits<T>::has_equals>::type> {
 | |
|   static const bool value = Internals::StringTraits<T>::has_equals;
 | |
| };
 | |
| }
 | |
| }
 |