Function duplicate_children

Synopsis

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

void duplicate_children(NodeRef const parent, NodeRef const after) const

Description

No description yet.

Source

Lines 681-693 in src/c4/yml/node.hpp.

inline void duplicate_children(NodeRef const parent, NodeRef const after) const
{
    _C4RV();
    RYML_ASSERT(parent.m_tree == after.m_tree);
    if(parent.m_tree == m_tree)
    {
        m_tree->duplicate_children(m_id, parent.m_id, after.m_id);
    }
    else
    {
        parent.m_tree->duplicate_children(m_tree, m_id, parent.m_id, after.m_id);
    }
}





Add Discussion as Guest

Log in