ListNode.hpp 517 B

123456789101112131415161718192021222324
  1. // ArduinoJson - arduinojson.org
  2. // Copyright Benoit Blanchon 2014-2018
  3. // MIT License
  4. #pragma once
  5. #include <stddef.h> // for NULL
  6. #include "../Memory/AllocableInMemoryPool.hpp"
  7. namespace ArduinoJson {
  8. namespace Internals {
  9. // A node for a singly-linked list.
  10. // Used by List<T> and its iterators.
  11. template <typename T>
  12. struct ListNode : public Internals::AllocableInMemoryPool {
  13. ListNode() NOEXCEPT : next(NULL) {}
  14. ListNode<T> *next;
  15. T content;
  16. };
  17. } // namespace Internals
  18. } // namespace ArduinoJson