Mail Archives: djgpp/1998/02/25/04:30:28
Fabrice ILPONSE wrote:
> Does anybody know if there's an equivalent of realloc in C++?
Yes. It's called `realloc'.
If you're asking if there's a "reallocate" equivalent in the new/delete
model, then the answer is no. If you think about what that should or
might mean in terms of calling an object's constructors and destructors,
it should become clear why it wasn't included a part of the language.
--
Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
Alcyone Systems / http://www.alcyone.com/max/
San Jose, California, United States / icbm://+37.20.07/-121.53.38
\
"I've got the fever for the / flavor of a cracker"
/ Ice Cube
- Raw text -