Function set_key_ref

Synopsis

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

void set_key_ref(size_t node, csubstr ref)

Description

No description yet.

Source

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

void set_key_ref   (size_t node, csubstr ref   ) { RYML_ASSERT( ! has_key_anchor(node)); NodeData* C4_RESTRICT n = _p(node); n->m_key.set_ref_maybe_replacing_scalar(ref, n->m_type.has_key()); _add_flags(node, KEY|KEYREF); }





Add Discussion as Guest

Log in