...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::property_tree::ini_parser::write_ini
// In header: <boost/property_tree/ini_parser.hpp> template<typename Ptree> void write_ini(const std::string & filename, const Ptree & pt, int flags = 0, const std::locale & loc = std::locale());
Translates the property tree to INI and writes it the given file.
Parameters: |
|
||||||||
Requires: |
pt cannot have data in its root. pt cannot have keys both data and children. pt cannot be deeper than two levels. There cannot be duplicate keys on any given level of pt. |
||||||||
Throws: |
info_parser_error In case of error translating the property tree to INI or writing to the file. |