Skip to content

Conversation

Quuxplusone
Copy link
Contributor

In the synopsis [inplace.vector.overview], reserve() and shrink_to_fit() are under size/capacity, but their actual descriptions are in [inplace.vector.modifiers], not [inplace.vector.capacity].

And the English title of [inplace.vector.capacity] doesn't quite match [vector.capacity], either. I think this is editorial and easy to patch.

@jensmaurer
Copy link
Member

@jwakely , what do you think?

@jensmaurer
Copy link
Member

@jwakely , ping.

@AlisdairM
Copy link
Contributor

AlisdairM commented Oct 21, 2024

For reference, this PR triggered me, as I thought the equivalent wording was structured differently in vector. When I checked the PR against our existing text though, I was wrong and I concur that this is the better way.

@Quuxplusone
Copy link
Contributor Author

Data point: I, also, think it's weird that resize isn't under "modifiers," and would be totally fine if someone went and fixed all the other containers to put resize, reserve, and shrink_to_fit under "modifiers" instead. :) But consistent one way or the other.

@tkoeppe tkoeppe merged commit 446ec2e into cplusplus:main Jun 20, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants