-
Notifications
You must be signed in to change notification settings - Fork 751
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
[std] Index specializations of range variable templates #5111
Conversation
I like it. |
d84d1aa
to
9bef817
Compare
9bef817
to
807fbbd
Compare
If someone can make a better macro, don't hesitate to take over. |
We can do that, but that loses the information for which template argument something is specialized. |
3090846
to
da20ac9
Compare
According to I had to place the index macro after the template-head, as putting it on its own line is visible as an empty line in the PDF. |
Even if you comment out the newline?
|
da20ac9
to
3d1bb00
Compare
3d1bb00
to
2e9413e
Compare
This comment was marked as resolved.
This comment was marked as resolved.
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.
Looks good to me.
@jwakely , what do you think? |
Could you please update the first commit to a) use the usual commit message style, and b) to explain a bit more what the new macro does? |
`\libspec{disable_sized_sentinel_for}{move_iterator}` will index `move_iterator` under `disable_sized_sentinel_for`, which is enough to uniquely identify ```C++ template<class Iterator1, class Iterator2> requires (!sized_sentinel_for<Iterator1, Iterator2>) constexpr bool disable_sized_sentinel_for<move_iterator<Iterator1>, // freestanding move_iterator<Iterator2>> = true; ```
2e9413e
to
20ae577
Compare
Done (16b640e). |
Thanks! |
I plan to use this in my own documentation, so I hope to get feedback if this is desirable in the WD.