Function insert_sibling

Summary

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

(1) NodeRef insert_sibling(NodeRef const after)

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

Function overload

Synopsis

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

NodeRef insert_sibling(NodeRef const after)

Description

No description yet.

Source

Lines 559-565 in src/c4/yml/node.hpp.

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

Synopsis

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

NodeRef insert_sibling(NodeInit const &i, NodeRef const after)

Description

No description yet.

Source

Lines 567-574 in src/c4/yml/node.hpp.

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





Add Discussion as Guest

Log in