c++n-ary-tree

How to reparent using tree.hh


Here I have a window with a list of groups of rows. In the image above, Path 2 to 6 are children of Group1.

https://i.sstatic.net/zb4FB.png

The container used for this tree is tree.hh. What function would I use to make Group1 (and its children) be child of Path 10. I don't want to delete rows and put them back again, just re-parent. Thanks!


Solution

  • I guess you should look at ::move_after()