-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for stored_size option in static_vector and small_vector #284
Comments
BTW, there is a documentation bug: container/include/boost/container/options.hpp Line 403 in 3ed1c76
here it says container/include/boost/container/options.hpp Lines 393 to 394 in 3ed1c76
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Both
static_vector
andsmall_vector
could benefit from supporting thestored_size
option that is supported by the basevector
container.static_vector
andsmall_vector
are usually used for small numbers of elements, and it makes sense to be able to use a smaller type to store the number of elements in the container.Also, just as an additional idea,
static_vector
could automatically use a smaller size type depending on the magnitude of the specified capacity. But my main request is still the support for explicitstored_size
option.The text was updated successfully, but these errors were encountered: