Function empty

Summary

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

(1) bool empty() const

(2) bool empty(size_t node) const

Function overload

Synopsis

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

bool empty() const

Description

No description yet.

Source

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

inline bool   empty() const { return m_size == 0; }

Synopsis

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

bool empty(size_t node) const

Description

true when key and val are empty, and has no children

Source

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

bool empty(size_t node) const { return ! has_children(node) && _p(node)->m_key.empty() && (( ! (_p(node)->m_type & VAL)) || _p(node)->m_val.empty()); }





Add Discussion as Guest

Log in