https://github.com/0xffff-one/0xffff-lib/blob/37d47ff56c3095b93f038bd9cffd29faa6ccd8af/src/collections/vector.h#L101-L105 For example: ``` Vec<char> vec; vec.reserve(100000000000000); // reserve a large chunk, vec.reserve(-1); // or reserve a negative chunk. ``` I suggest adding try catch in reallocate. https://github.com/0xffff-one/0xffff-lib/blob/37d47ff56c3095b93f038bd9cffd29faa6ccd8af/src/collections/vector.h#L85-L85
0xffff-lib/src/collections/vector.h
Lines 101 to 105 in 37d47ff
For example:
I suggest adding try catch in reallocate.
0xffff-lib/src/collections/vector.h
Line 85 in 37d47ff