boost::property_tree::swap
// In header: <boost/property_tree/ptree_fwd.hpp> template<typename K, typename D, typename C> void swap(basic_ptree< K, D, C > & pt1, basic_ptree< K, D, C > & pt2);
Swap two property tree instances.