Sorry I didn't expand the commit fully, I thought this was the constructor.
In any case, AFAIK the standard makes no guarantees about the asymptotic behaviour of repeated calls to `std::vector<T>::resize()`, unlike push_back.

I'm not sure we want that behaviour for resize too.