I have the next problem :
I want to store data from a grid. Some cells has values, others not.
Ok, MAP can let me to do it. If I have values for cells 1 and 100 I have only two elements easily stored. But I cannot insert without looping around rows and cols to copy offset and open a new empty space (that is to say: add 101, 101 = 100, new data for 100)
Ok, List, however has the insert method. So I have not to loop when insert. But if I have values for cells 1 and 100 I need to store 100 elements...
So any easy idea to use a special container that let me to do what I want
(a key-value data and fast insert method ?)
Thanks .


Reply With Quote



Bookmarks