I want a program that creates an undetermined amount of lists. The size of each list is fixed, but I can't determine at compile time how many lists am I going to need.
I understand I cannot create a vector of arrays. I also understand I can use a vector of vectors, but I wonder if this is the best efficient way to do it considering the fact I need to reserve a fixed amount of memory each time I need a new array.
std::arrayas its underlying storage. If you can't use C++11, you are probably better off using vectors rather than legacy C arrays. Any performance loss will probably be utterly insignificant.