...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. <simplesectsep></simplesectsep>pt cannot have keys both data and children. <simplesectsep></simplesectsep>pt cannot be deeper than two levels. <simplesectsep></simplesectsep>There cannot be duplicate keys on any given level of pt. |
||||||||
Throws: |
info_parser_error |