Function duplicate_children

Summary

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

(1) size_t duplicate_children(size_t node, size_t parent, size_t after)

(2) size_t duplicate_children(Tree const *src, size_t node, size_t parent, size_t after)

Function overload

Synopsis

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

size_t duplicate_children(size_t node, size_t parent, size_t after)

Description

recursively duplicate the node's children (but not the node)

Returns
the index of the last duplicated child

Source

Line 861 in src/c4/yml/tree.hpp.

Synopsis

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

size_t duplicate_children(Tree const *src, size_t node, size_t parent, size_t after)

Description

recursively duplicate the node's children (but not the node), where the node is from a different tree

Returns
the index of the last duplicated child

Source

Line 865 in src/c4/yml/tree.hpp.






Add Discussion as Guest

Log in