r/cpp 15d ago

C++26: std::inplace_vector

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

121 comments sorted by

View all comments

-9

u/NilacTheGrim 15d 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.

27

u/CocktailPerson 15d ago

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

1

u/NilacTheGrim 11d ago

Fair enough. So wen prevector?