toml11

TOML parser and encoder library for Modern C++

brewmacoslinux
Try with needOr install directly
Source

About

TOML for Modern C++

Commands

toml11

Examples

Parse and read a TOML configuration file in C++ code$ g++ -std=c++11 -I/usr/local/include myapp.cpp -o myapp
Include toml11 header to parse TOML data$ #include <toml.hpp> auto data = toml::parse("config.toml");
Encode C++ data structure to TOML format$ auto out = toml::value{"key", "value"}; std::cout << toml::format(out);