r/cpp 6d ago

C++26: std::inplace_vector

https://www.sandordargo.com/blog/2026/08/26/cpp26-inplace-vector
174 Upvotes

121 comments sorted by

View all comments

-6

u/NilacTheGrim 6d ago

Ridiculously incomplete. We should have had a real prevector rather than this. You know, a prevector where there is some small static capacity but it can go dynamic as it grows.

This is not as useful as a real prevector.

26

u/CocktailPerson 6d ago

That'd just be an entirely different thing, not a more "complete" version of inplace_vector.

1

u/NilacTheGrim 2d ago

Fair enough. So wen prevector?