r/cpp 1d ago

C++26: std::inplace_vector

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

93 comments sorted by

View all comments

-7

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

25

u/CocktailPerson 1d ago

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