Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!cca!alex From: alex@cca.CCA.COM (Alexis Layton) Newsgroups: comp.lang.c++ Subject: resizing operator Message-ID: <24568@cca.CCA.COM> Date: 16 Feb 88 06:48:22 GMT Reply-To: alex@cca.UUCP (Alexis Layton) Organization: Computer Corp. of America, Cambridge, MA Lines: 14 One of the language features that I find missing in C++ is some built-in support for vector allocation resizing, such as a resize operator. Many of my programs make use of dynamically changing allocations. When they were written in C, realloc was used. It is possible to specify the memory allocation function for new and delete, which (presumably) would allow one to implement a realloc-type function. But it would be a cleaner interface to have language support, probably like resize[count] pointer; which would be similar to vector delete. Has any thought been given to this area? Am I missing something obvious?