Getting boost property_tree parent node

杀马特。学长 韩版系。学妹 提交于 2019-12-02 00:32:41

You can't.

Boost Ptree nodes are self-contained and do not know about any containing datastructure (it's the the "tree" equivalent of a singly-linked list).

As a best approximation you could look up the child inside the parent, e.g. with something like in C++: boost ptree relative key.

This presumes you always have "a root" available to search in.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!