Function duplicate_children_no_rep

Summary

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

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

(2) size_t duplicate_children_no_rep(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_no_rep(size_t node, size_t parent, size_t after)

Description

duplicate the node's children (but not the node) in a new parent, but omit repetitions where a duplicated node has the same key (in maps) or value (in seqs). If one of the duplicated children has the same key (in maps) or value (in seqs) as one of the parent's children, the one that is placed closest to the end will prevail.

Source

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

Synopsis

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

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

Description

No description yet.

Source

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






Add Discussion as Guest

Log in