Function has_anchor

Summary

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

(1) C4_ALWAYS_INLINE bool has_anchor(size_t node) const

(2) bool has_anchor(size_t node, csubstr a) const

Function overload

Synopsis

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

C4_ALWAYS_INLINE bool has_anchor(size_t node) const

Description

No description yet.

Source

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

C4_ALWAYS_INLINE bool has_anchor(size_t node) const { return _p(node)->m_type.has_anchor(); }

Synopsis

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

bool has_anchor(size_t node, csubstr a) const

Description

true when the node has an anchor named a

Source

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

bool has_anchor(size_t node, csubstr a) const { return _p(node)->m_key.anchor == a || _p(node)->m_val.anchor == a; }





Add Discussion as Guest

Log in