On Nov 18, 8:48*pm, Joe Gottman <jgott...@carolina.rr.comwrote:
jason.cipri...@gmail.com wrote:
What is the official word on what happens if I call reserve() on an
std::vector, and specify a capacity that is less than the current
*size* (not capacity) of that vector? Is it supposed to resize() the
vector as well? Or just not modify anything?
Thanks,
Jason
reserve() never reduces capacity; it just increases it. *Therefore this
is a no-op.
That's what I was looking for, thanks Joe and Salt_Peter.
Also, sorry, I'm looking now and it turns out that actually *is*
stated in the docs I was reading, it's just in a footnote that I
missed. :-o
Jason