tomlplusplus

Header-only TOML parser and serializer library for C++17

brewmacoslinux
Try with needOr install directly
Source

About

Header-only TOML config file parser and serializer for C++17

Commands

tomlplusplus

Examples

Include the library in a C++ project to parse TOML files$ #include <toml++/toml.h> auto tbl = toml::parse_file("config.toml");
Access TOML values and convert to C++ types$ auto name = tbl["name"].value_or("default"); auto count = tbl["count"].value_or(0);
Create and serialize TOML data programmatically$ toml::table tbl; tbl.insert("key", "value"); std::cout << tbl;