The C++26 Inplace_vector Container
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
C++26 adds std::inplace_vector, a container that sits between std::array and std::vector: it has a compile-time fixed capacity like std::array but a runtime-variable size like std::vector, while storing elements contiguously in place with no heap allocation.