Function set_root_as_stream

Synopsis

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

void set_root_as_stream()

Description

ensure the first node is a stream. Eg, change this tree

DOCMAP MAP KEYVAL KEYVAL SEQ VAL

to

STREAM DOCMAP MAP KEYVAL KEYVAL SEQ VAL

If the root is already a stream, this is a no-op.

Source

Line 846 in src/c4/yml/tree.hpp.






Add Discussion as Guest

Log in