-
Notifications
You must be signed in to change notification settings - Fork 761
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
[range.elements.overview] LWG 3302: range adaptor objects keys
and values
are unspecified
#3231
Comments
keys
and values
keys
and values
are unspecified
That sounds non-editorial. |
If you want me to submit an LWG issue, I'll take care of it. |
That would be nice. Missing descriptions are not editorial. |
OK, I'll do that today. Thanks for the help! |
Poor Chris revised P1035 no less than 16 times in Cologne. IIRC we wanted to specify @morinmorin, if I may suggest a proposed resolution for your issue, I believe our intent was:
|
LGTM |
@CaseyCarter, thanks for the suggestion. I should have asked you for the help before sending the issue to LWG. I'll soon resend a modified one that replaces the old PR -3- `keys_view` is an alias for `elements_view<all_view<R>, 0>`…
+-?- The name `views::keys` denotes a range adaptor object (24.7.1).
+For some subexpression `E`, the expression `views::keys(E)` is
+expression-equivalent to `elements_view<all_view<decltype((E))>, 0>{E}`.
-4- `values_view` is an alias for `elements_view<all_view<R>, 1>`…
+-?- The name `views::values` denotes a range adaptor object (24.7.1).
+For some subexpression `E`, the expression `views::values(E)` is
+expression-equivalent to `elements_view<all_view<decltype((E))>, 1>{E}`. with the suggested PR. |
@morinmorin, do you have an LWG issue number for tracking? |
@jensmaurer, I don't have an issue number yet. I'll post the number here, when I receive it. (I submitted another issue a day before submitting this to LWG, and that one got the number 3301 earlier today.) |
A corresponding LWG issue has been created now: LWG 3302. |
keys
and values
are unspecifiedkeys
and values
are unspecified
|
They are listed in [ranges.syn], but not specified in [range.elements.overview]. Most probably
keys
would work aselements<0>
andvalues
would work aselements<1>
. But neither N4830 nor P1035R7 has such specification. I'm not sure if this issue can be resolved editorially.Additionally, there are no index entries for
keys_view
andvalues_view
.The text was updated successfully, but these errors were encountered: