fn vec_with_capacity_impl