1
遍歷的遞歸變型矢量我想建立構建的載體樹如下如何使用Boost C++
struct myStruct {
int a;
string b;
};
typedef boost::make_recursive_variant<
myStruct *
, std::vector<boost::recursive_variant_>
>::type myStruct_tree;
如果我追加多載體,以及這些載體,我怎麼會遍歷使用樹某種位置矢量
vector<int>
哪些定位矢量指針樹中定義的每個矢量/子矢量中的對象位置。