You won't need this enhancement in C++ if you just use `std::vector` or `std::array`.
That's what my comment was addressing: In C++ with vector, map, etc, you don't need to remember to safely realloc manually, because the containers do it for you automatically.