forked from bblanchon/ArduinoJson
Added ElementProxy::getOrAddElement() (fixes #1311)
This commit is contained in:
1 parent
40085609e2
commit
6dc36125c2
4 files changed
+7
-1
No files matched your search
@@ -135,6 +135,10 @@ class ElementProxy : public VariantOperators<ElementProxy<TArray> >,
|
||||
return getOrAddUpstreamElement().getElement(index);
|
||||
}
|
||||
|
||||
VariantRef getOrAddElement(size_t index) const {
|
||||
return getOrAddUpstreamElement().getOrAddElement(index);
|
||||
}
|
||||
|
||||
FORCE_INLINE void remove(size_t index) const {
|
||||
getUpstreamElement().remove(index);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user