Please ignore the unsigned int
I put it there for completeness. Anyways, my question is how do I declare an unordered_map
if I want to store arrays of different sizes in it.
I found a related answer on here: Using unordered_map on array of doubles
However, the person said that the size of the array has to be declared as well (from what I understood is that, the array can only have the same size in the unordered_map
). Is there a way to do what I'm trying to accomplish?
Update............................................
I'm using "easygl" to draw somethings, one their functions fillpoly requires an array of points in order to draw the polygon. I tried passing a vector, it didn't work. So I decided to use an array instead and it ended badly.