mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-27 09:17:32 +02:00
25 lines
502 B
C++
25 lines
502 B
C++
// ArduinoJson - arduinojson.org
|
|
// Copyright Benoit Blanchon 2014-2019
|
|
// 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;
|
|
};
|
|
} // namespace Internals
|
|
} // namespace ArduinoJson
|