Function c4::yml::emit_yaml(Tree const&, substr, bool)

Function Documentation

inline substr c4::yml::emit_yaml(Tree const &t, substr buf, bool error_on_excess = true)

emit YAML to the given buffer. Return a substr trimmed to the emitted YAML.

Parameters:

error_on_excess – Raise an error if the space in the buffer is insufficient. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.