[c++] Choice between vector::resize() and vector::reserve()