Function duplicate
Summary
#include <src/c4/yml/tree.hpp>
(1) size_t duplicate(size_t node, size_t new_parent, size_t after)
(2) size_t duplicate(Tree const *src, size_t node, size_t new_parent, size_t after)
Function overload
Synopsis
#include <src/c4/yml/tree.hpp>
size_t duplicate(size_t node, size_t new_parent, size_t after)
Description
recursively duplicate a node from this tree into a new parent, placing it after one of its children
- Returns
- the index of the copy
Source
Line 853 in src/c4/yml/tree.hpp.
Synopsis
#include <src/c4/yml/tree.hpp>
size_t duplicate(Tree const *src, size_t node, size_t new_parent, size_t after)
Description
recursively duplicate a node from a different tree into a new parent, placing it after one of its children
- Returns
- the index of the copy
Source
Line 857 in src/c4/yml/tree.hpp.