forked from bblanchon/ArduinoJson
Added conversion from ListIterator to ListConstIterator
This commit is contained in:
@ -7,6 +7,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "ListNode.hpp"
|
#include "ListNode.hpp"
|
||||||
|
#include "ListConstIterator.hpp"
|
||||||
|
|
||||||
namespace ArduinoJson {
|
namespace ArduinoJson {
|
||||||
namespace Internals {
|
namespace Internals {
|
||||||
@ -33,6 +34,8 @@ class ListIterator {
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
operator ListConstIterator<T>() const { return ListConstIterator<T>(_node); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ListNode<T> *_node;
|
ListNode<T> *_node;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user