summaryrefslogtreecommitdiff
path: root/include/lib/ArduinoJson/Strings/IsString.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/lib/ArduinoJson/Strings/IsString.hpp')
-rw-r--r--include/lib/ArduinoJson/Strings/IsString.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/lib/ArduinoJson/Strings/IsString.hpp b/include/lib/ArduinoJson/Strings/IsString.hpp
new file mode 100644
index 0000000..af5a91a
--- /dev/null
+++ b/include/lib/ArduinoJson/Strings/IsString.hpp
@@ -0,0 +1,18 @@
+// ArduinoJson - https://arduinojson.org
+// Copyright Benoit Blanchon 2014-2021
+// MIT License
+
+#pragma once
+
+#include <ArduinoJson/Polyfills/type_traits.hpp>
+
+namespace ARDUINOJSON_NAMESPACE {
+template <typename>
+struct IsString : false_type {};
+
+template <typename T>
+struct IsString<const T> : IsString<T> {};
+
+template <typename T>
+struct IsString<T&> : IsString<T> {};
+} // namespace ARDUINOJSON_NAMESPACE