has there been any support added for realloc in the upcoming standard library (or the TR's in the years since C++98)?
I know that there was nothing when I looked at this the last time - like 2002 or so. Anything here?
Ciao, Imi.
Edit: What I mean by that is, that the allocator - concept of the STL container can use methods like the C-method realloc to avoid memory reallocations if applicable.
In practice, realloc only avoids a reallocation if the block is shrunk.
There have been decades of complaints about realloc. The real problem with it is any combination of parameter values is valid, making it impossible to determine pre/post conditions.
I've seen no mention of a realloc for C++ in the latest standard work.