title: Does resize() to a smaller size discard the reservation made by earlier reserve()?
body: <p>So if I reserve(100) first, add some elements, and then resize(0) (or any other number smaller than the current size), will the vector reallocate memory to a take less space than 100 elements?</p>