Subj : realloc() issue on C++ To : borland.public.cpp.borlandcpp From : Jose Mauro Date : Sun Mar 20 2005 07:29 am Dear all, There are a short and efficient way to implement the "C" realloc function (where the previous content is copied to the new location if necessary) in C++ ? Stroustrup book's recommend the use of vector<> in this case, but will be very cumbersome rewrite my code to use STL containers. Basically, i have a lots of "Object *" arrays allocated with "new Object[size]", and i need reallocate these arrays to, say, "Object[newsize]", preserving the initial contents. My difficulty is that initial array "size" is not know (not in scope) ate the reallocation point, for permit a memory copy. Thanks, .