Function insert_child

Summary

#include <src/c4/yml/node.hpp>

(1) NodeRef insert_child(NodeRef after)

(2) NodeRef insert_child(NodeInit const &i, NodeRef after)

Function overload

Synopsis

#include <src/c4/yml/node.hpp>

NodeRef insert_child(NodeRef after)

Description

No description yet.

Source

Lines 510-516 in src/c4/yml/node.hpp.

inline NodeRef insert_child(NodeRef after)
{
    _C4RV();
    RYML_ASSERT(after.m_tree == m_tree);
    NodeRef r(m_tree, m_tree->insert_child(m_id, after.m_id));
    return r;
}

Synopsis

#include <src/c4/yml/node.hpp>

NodeRef insert_child(NodeInit const &i, NodeRef after)

Description

No description yet.

Source

Lines 518-525 in src/c4/yml/node.hpp.

inline NodeRef insert_child(NodeInit const& i, NodeRef after)
{
    _C4RV();
    RYML_ASSERT(after.m_tree == m_tree);
    NodeRef r(m_tree, m_tree->insert_child(m_id, after.m_id));
    r._apply(i);
    return r;
}





Add Discussion as Guest

Log in