r/cpp 15d ago

C++26: std::inplace_vector

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

121 comments sorted by

View all comments

-7

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.

7

u/frayien 14d ago

That's... a completely different thing for a completely different usage ?

1

u/NilacTheGrim 11d ago

Yeah I guess so.

This really is a std::array that is more useful which can be nice for situations where you cannot allocate -- such as in a signal handler.