Re: realloc equivalent in C++
Posted in 1996
Steve Teale — — source: Informix-list mailing list archive (1991-1998)
se4pm@dmu.ac.uk (Piers Myers) wrote: >In article <311BDA8A.1462@ctp.com>, Ian Flint (iflin@ctp.com) writes: >> Honbo Zhou wrote: >> > >> > Is there anything in C++ equvalent to realloc in C which can be used >> > to increase allocated memory? Can't find this even in C++ books which >> > talk about memory management specifically. Thanks. Honbo >> Yes. realloc. >> - Ian Flint >Yeah, but mixing C++'s new and the old C type alloc, realloc, etc is >VERY bad! So don't do it! >- Piers Piers - why? Many implementations of operator new and operator delete will use the existing C functions, or at least the same underlying memory management code.