diff options
Diffstat (limited to 'libs/libjson/src/JSONNode.inl')
-rw-r--r-- | libs/libjson/src/JSONNode.inl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/libjson/src/JSONNode.inl b/libs/libjson/src/JSONNode.inl index 9562e3f3ec..d895a977f7 100644 --- a/libs/libjson/src/JSONNode.inl +++ b/libs/libjson/src/JSONNode.inl @@ -148,6 +148,12 @@ inline void JSONNode::push_back(const JSONNode & child){ internal -> push_back(child);
}
+inline JSONNode& JSONNode::operator<<(const JSONNode &node)
+{
+ push_back(node);
+ return *this;
+}
+
inline void JSONNode::reserve(json_index_t size){
makeUniqueInternal();
internal -> reserve(size);
|