Function root_id
Summary
#include <src/c4/yml/tree.hpp>
(1) size_t root_id()
(2) size_t root_id() const
Function overload
Synopsis
#include <src/c4/yml/tree.hpp>
size_t root_id()
Description
Get the id of the root node.
Mentioned in
- Getting Started / Quick start
- Getting Started / Python
Source
Lines 517-517 in src/c4/yml/tree.hpp.
size_t root_id() { if(m_cap == 0) { reserve(16); } RYML_ASSERT(m_cap > 0 && m_size > 0); return 0; }
Synopsis
#include <src/c4/yml/tree.hpp>
size_t root_id() const
Description
Get the id of the root node.
Mentioned in
- Getting Started / Quick start
- Getting Started / Python
Source
Lines 519-519 in src/c4/yml/tree.hpp.
size_t root_id() const { RYML_ASSERT(m_cap > 0 && m_size > 0); return 0; }