Function num_siblings

Synopsis

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

size_t num_siblings(size_t node) const

Description

O(num_siblings) counts with this

Source

Lines 658-658 in src/c4/yml/tree.hpp.

size_t num_siblings(size_t node) const { return is_root(node) ? 1 : num_children(_p(node)->m_parent); }





Add Discussion as Guest

Log in