$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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
> news:4.3.1.2.20020809113659.01e3f8c8_at_mail.rudbek.com...
> > [...]
> > 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.