stl vector and c++: how to .resize without a default constructor? December 3, 2023 by Tarik Use the 2-argument overload: many_things.resize(20, something(5));