ListNode.hpp 530 B

123456789101112131415161718192021222324252627
  1. // Copyright Benoit Blanchon 2014-2016
  2. // MIT License
  3. //
  4. // Arduino JSON library
  5. // https://github.com/bblanchon/ArduinoJson
  6. // If you like this project, please add a star!
  7. #pragma once
  8. #include <stddef.h> // for NULL
  9. #include "JsonBufferAllocated.hpp"
  10. namespace ArduinoJson {
  11. namespace Internals {
  12. // A node for a singly-linked list.
  13. // Used by List<T> and its iterators.
  14. template <typename T>
  15. struct ListNode : public Internals::JsonBufferAllocated {
  16. ListNode() : next(NULL) {}
  17. ListNode<T> *next;
  18. T content;
  19. };
  20. }
  21. }