In C #, I used key value pairs or dictionaries to store rare populated arrays. I think for 80 dimensions you will need to build a string key. Use a single function to create a key that must remain consistent. Just combine the list of sizes separated by commas. Unfortunately, I do not know a good key pair, a dictionary library for C ++. Maybe STL if you used it before, but I would not recommend it otherwise.
source share