map or vector, which is less performant and by how much?
I have vectors of vectors of vectors, ~1 million elements,
one vector may look like this:
3 4 5 6 7 ...
32 95 14 46 32 ...
Due to the fact that vectors cannot start with an index of 3 (can someone confirm this? explain etails too), and some complications in my programs, I can't get it to do what I want it to do.
I am faced with the option of lowering the index by 3 ( 1 2 3 ... n-3), or using maps instead of vectors.
Should I use maps for the sake of making my code easier to read for my collaborators? What are the performance disadvantages of using a map(s) instead of vector(s)