如果这是XY问题,你想要做什么?关于你的问题,用户自定义树遍历不受官方支持。但是,如果你不怕深入内部,你可以编写自己的节点访问器,就像这个例子一样: https://github.com/boostorg/geometry/blob/develop/include/boost/geometry/index/detail/rtree/utilities/print.hpp#L133 并像这样使用它: https://github.com/boostorg/geometry/blob/develop/include/boost/geometry/index/detail/rtree/utilities/print.hpp#L200
begin()..end()
遍历的顺序也取决于所选择的参数http://www.boost.org/doc/libs/1_61_0/libs/geometry/doc/html/geometry/reference/spatial_indexes/parameters.html - sehebegin() ... end()
返回叶节点的迭代器。我想要内部节点的迭代器。 - chenzhongpu