Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2013. The current version is 1.90.0.
boost::property_tree::ini_parser::write_ini
// In header: <boost/property_tree/ini_parser.hpp> template<typename Ptree> void write_ini(std::basic_ostream< typename Ptree::key_type::value_type > & stream, const Ptree & pt, int flags = 0);
Translates the property tree to INI and writes it the given output stream.
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: |
ini_parser_error In case of error translating the property tree to INI or writing to the output stream. |