diff options
Diffstat (limited to 'include/lib/ArduinoJson/Data/ListNode.hpp')
-rw-r--r-- | include/lib/ArduinoJson/Data/ListNode.hpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/lib/ArduinoJson/Data/ListNode.hpp b/include/lib/ArduinoJson/Data/ListNode.hpp new file mode 100644 index 0000000..c090712 --- /dev/null +++ b/include/lib/ArduinoJson/Data/ListNode.hpp @@ -0,0 +1,24 @@ +// ArduinoJson - arduinojson.org +// Copyright Benoit Blanchon 2014-2018 +// MIT License + +#pragma once + +#include <stddef.h> // for NULL + +#include "JsonBufferAllocated.hpp" + +namespace ArduinoJson { +namespace Internals { + +// A node for a singly-linked list. +// Used by List<T> and its iterators. +template <typename T> +struct ListNode : public Internals::JsonBufferAllocated { + ListNode() throw() : next(NULL) {} + + ListNode<T> *next; + T content; +}; +} +} |