[Insight-developers] VectorContainer: Reserve, Squeeze, Resize

Luis Ibanez ibanez@cs.unc.edu
Tue, 27 Feb 2001 11:42:30 -0500


Hi,

Is there an equivalent to stl resize in VectorContainer ?

In stl  "resize" allocates  (at least) a specific number of elements,
and reduces the size of a larger container to the minimum necessary.

The only similar combination I found in VectorContainer
is to call Reserve( N ) followed by Squeeze(), Just to insure
that if the Containter has more than needed,  this memory will be
released.


Is that a reasonable way to do it ?


Thanks

Luis