From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-08-09 14:19:56
From: "David B. Held" <dheld_at_[hidden]>
> "Victor A. Wagner, Jr." <vawjr_at_[hidden]> wrote in message
> > [...]
> > from all the books I've read, resize() will NOT shrink a vector
> Or is it merely that it is not guaranteed to shrink a vector?
Guaranteed not to reallocate, if the new size is not greater than
capacity(). resize(0) is borderline; some try to argue that it is allowed to
free the memory.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk