Skip to content

[vector.capacity] vector::reserve is tutorial-like#9159

Open
notdanhan wants to merge 1 commit into
cplusplus:mainfrom
notdanhan:vector_capacity_reserve_fix
Open

[vector.capacity] vector::reserve is tutorial-like#9159
notdanhan wants to merge 1 commit into
cplusplus:mainfrom
notdanhan:vector_capacity_reserve_fix

Conversation

@notdanhan

Copy link
Copy Markdown

Fixes #7401

Comment thread source/containers.tex
\tcode{capacity()}
is greater or equal to the argument of
\tcode{reserve}
if reallocation happens; and equal to the previous value of

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find the wording here to be a bit obtuse, but that's for another time.

@eisenwave eisenwave added the P3-Other Triaged issue not in P1 or P2 label Jun 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3-Other Triaged issue not in P1 or P2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[vector.capacity] vector::reserve is tutorial-like

2 participants