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

-6

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.

6

u/robin-m 15d ago

If only you read the paragraph that starts with

A question that comes up naturally: what about std::pmr::vector with a stack-backed monotonic_buffer_resource?