I have three structs (Foo, Bar, Fruit) and I want a vector to hold each struct like vector<Foo> Foo_holder; vector<Bar> Bar_holder; vector<Fruit> Fruit holder;
and then I want to try and put all three of those vectors into one vector. So it should end up like this with Vector_holder
being the top level vector that I wish to know how to create:
Vector_holder
--- Foo_Holder
------Instance of Foo
--- Bar_holder
------Instance of Bar
How do I go about doing this?
Aucun commentaire:
Enregistrer un commentaire