Allocate available memory for TArrayAsVector


2005-01-20 05:12:56 AM
cppbuilder45
Hello,
In order to have fast access to individual elements, I want to
use TArrayAsVector template, but it has the draw back that it
doubles the memory when resizing. Is there any way to know in advance the amount of available memory to allocate to reduce
unnecessary reallocations?
Thanks