Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does the std library contain equivalent to boost small_vector and static_vector?

Tags:

c++

c++23

Those 2 containers are useful. Allocated on the stack up to some size, then on the heap. And the other, max compile time capacity with a runtime number of elements.

Is there a equivalent in the std library? Are there proposals for future versions of the std library?

like image 474
MMM Avatar asked Oct 16 '25 19:10

MMM


1 Answers

Is there a equivalent in the std library?

Not as of this writing.

Are there proposals for future versions of the std library?

For static_vector: P0843.

For small_vector: P0274.

like image 172
Barry Avatar answered Oct 18 '25 09:10

Barry



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!