Skip to content
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

[flat.*.{syn,erasure}] Change return type of erase_if to member size_type #5772

Merged
merged 1 commit into from Aug 22, 2022

Conversation

tkoeppe
Copy link
Contributor

@tkoeppe tkoeppe commented Aug 22, 2022

All other containers and container adapters use the member size_type,
and the flat maps already did so in the item specification, but not in
the synopsis.

The current wording follows the approved proposals, but this change
seems like an improvement.

Suggested by CD review.

…type

All other containers and container adapters use the member size_type,
and the flat maps already did so in the item specification, but not in
the synopsis.

The current wording follows the approved proposals, but this change
seems like an improvement.

Suggested by CD review feedback.
Copy link
Member

@jwakely jwakely left a comment

Choose a reason for hiding this comment

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

The synopses obviously need to be consistent, and using size_type is consistent with all other containers and with the detailed descriptions for flat maps. I don't think this needs to go via LWG, I can't imagine anybody asking for any other resolution than this.

@tkoeppe
Copy link
Contributor Author

tkoeppe commented Aug 22, 2022

Thanks a lot!

@tkoeppe tkoeppe merged commit 96fce7b into cplusplus:main Aug 22, 2022
@tkoeppe tkoeppe deleted the memsize branch August 22, 2022 15:30
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.

None yet

2 participants