HI,
I guess I don't understand the problem then. Why not just use a vector of
vectors with these indices?
typedef std::vector<std::vector<POINT>> VecVector;
Actually it's a vector of vectors but there's a disadvantage with
it... let's assume I have 4 checkboxes where each checkbox represents
a source:
1) I select first checkbox and insert into vector_of_vectors as idx =
0;
2) I select second checkbox and insert into vector_of_vectors as idx =
1;
3) I deselect first checkbox and erase from vector_of_vectors of idx=0
position
4) I deselect second checkbox and erase from vector_of_vectors of
idx=1 position <---- here I get an Assertion Failure for right because
now the array of vectors is sized = 1 and there's no idx=1....
or even if I select second checkbox and insert into vector_of_vectors
as idx=1 (vectors_of_vector.insert(vectors_of_vector.begin()+idx,
vector) ) and it goes into assertion failure because there's no
idx=1...
Indeed having an "ordered by int" set I could have something like:
vectors_of_vector.insert(idx, vector); where it would insert for that
idx and when I need to remove it would find the idx I want and remove
it...
would work for you.