Function doc

Synopsis

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

size_t doc(size_t i) const

Description

gets the i document node index. requires that the root node is a stream.

Source

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

size_t doc(size_t i) const { size_t rid = root_id(); RYML_ASSERT(is_stream(rid)); return child(rid, i); } //!< gets the @p i document node index. requires that the root node is a stream.





Add Discussion as Guest

Log in