-
Notifications
You must be signed in to change notification settings - Fork 762
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.set.modifiers] (first, last)
should be rg
#6246
Conversation
Restore consistency with [flat.map.modifiers]/13, which already uses `ranges::distance(rg)`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that first, last are not even in-scope identifiers here, this seems good to me.
@jwakely ?
@Quuxplusone , if you write a paper introducing a section of new text, please don't post a pull request doing the same. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change is correct. This is just a copy&paste error in the incoming paper (P1222R4), reusing the text from the insert(InputIterator first, InputIterator last)
function in paragraph 6.
No, that would not be editorial. |
IIRC it's intentional that we don't repeat redundant wording:
It would be better if we used similar wording for those two places, but I don't think we need to duplicate specifications if there is no difference. We have been doing something similar for |
Okay, that makes sense. I had missed that wording, and as you say, it's different in the two places. My paper will not propose to add [flat.multimap.modifiers], at least not for this reason.
So we must re-describe My next question is, then, should I (submit a PR | propose in a paper) that [flat.multiset.overview/4] should be harmonized with [flat.multimap.overview/4]? For example perhaps they should both say:
I'm not sure how to express the idea that Or how to express that the return value of FYI, my paper-in-progress is D2767R0 "flat_map/flat_set omnibus." (I haven't completed all sections yet. Haven't even started some of them.) If you have suggestions on the format, please let me know here or by email. It'll be at least as messy to review as #5923, because it starts by repeating #5923's proposed editorial change and then goes on with additional less-editorial changes from there. |
Restore consistency with [flat.map.modifiers]/13, which already uses
ranges::distance(rg)
.However, @jwakely can I also get some LWG guidance here? Right now, there is no
insert_range
in flat.multiset.modifiers, and there is no flat.multimap.modifiers at all. My intuition is that thisinsert_range
wording should appear in both places.I'm planning P2767R0 "flat_foo omnibus" for Varna. Should I submit a pull-request before Varna to add a section named [flat.multimap.modifiers], with contents similar to [flat.map.modifiers]? Should I just make P2767 introduce all of [flat.multimap.modifiers]? Or does LWG think it's "obvious" what
flat_multimap::insert_range
should do, and therefore it shouldn't be documented explicitly? See the index of library names for the status quo.