Function has_sibling
Summary
#include <src/c4/yml/tree.hpp>
(1) bool has_sibling(size_t node, size_t sib) const
(2) bool has_sibling(size_t node, csubstr key) const
Function overload
Synopsis
#include <src/c4/yml/tree.hpp>
bool has_sibling(size_t node, size_t sib) const
Description
No description yet.
Source
Lines 629-629 in src/c4/yml/tree.hpp.
bool has_sibling(size_t node, size_t sib) const { return is_root(node) ? sib==node : child_pos(_p(node)->m_parent, sib) != npos; }
Synopsis
#include <src/c4/yml/tree.hpp>
bool has_sibling(size_t node, csubstr key) const
Description
No description yet.
Source
Lines 630-630 in src/c4/yml/tree.hpp.
bool has_sibling(size_t node, csubstr key) const { return find_sibling(node, key) != npos; }