www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/25/04:30:28

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C++ and realloc
Date: Wed, 25 Feb 1998 01:08:38 -0800
Organization: Alcyone Systems
Lines: 18
Message-ID: <34F3DF96.297435A9@alcyone.com>
References: <34F3DF1B DOT 2201 AT trash DOT lip6 DOT fr>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019