boost::property_tree::ptree node; node.add_child("child", boost::property_tree::ptree("value"));
boost::property_tree::ptree node; boost::property_tree::ptree children; children.add_child("child1", boost::property_tree::ptree("value1")); children.add_child("child2", boost::property_tree::ptree("value2")); node.add_child("children", children);In this example, two child nodes with the names "child1" and "child2" and the values "value1" and "value2" are added to a new parent node with the name "children". Overall, the Boost.Property_tree library is a useful tool in C++ for handling tree-structured data.