I'm migrating some code from c to c++.
I've changed some malloc
calls for structure memory allocation to new
calls.
Basically before the code I'm porting was malloc'ing arrays that contain multiple sets of frame coords, each a couple hundred thousand floats in length -- so the total array length could be in the tens of millions of coordinates.
What kind of structure/container should I use?
And what kind of protections do I need to catch memory-related errors?
Edit 1
I've retitled/rephrased the question to more accurately reflect what I'm trying to do.
I'm think some sort of 2D list-like structure might do the trick... possibly a std::deque of std::deque(s)?