template<typename Char = char>
toml::default_formatter class final

A wrapper for printing TOML objects out to a stream as formatted TOML.

Template parameters
Char The underlying character type of the output stream. Must be 1 byte in size.
auto tbl = toml::table{{
    { "description", "This is some TOML, yo." },
    { "fruit", toml::array{ "apple", "orange", "pear" } },
    { "numbers", toml::array{ 1, 2, 3, 4, 5 } },
    { "table", toml::table{{ { "foo", "bar" } }} }
}};

// these two lines are equivalent:
std::cout << toml::default_formatter{ tbl } << std::endl;
std::cout << tbl << std::endl;
description = "This is some TOML, yo."
fruit = ["apple", "orange", "pear"]
numbers = [1, 2, 3, 4, 5]

[table]
foo = "bar"