Hey, I'm having trouble emptying a std:vector<int>. It seems if I resize it to a given number I can not perform any action on it so that vector.capacity() returns 0 again. Tried with vector.resize(0) and vector.clear() but vector.capacity() will still return the number from before the resize.
I need to reset the vector to 0 elements and free up all memory, how do I do that? The vector is used in a static class instance.