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
[tuple.helper, pair.astuple, array.tuple] Unconventional description of tuple_element
#2476
Comments
Just noticed https://wg21.link/LWG3166, which is about the Value: part of this issue. |
I missed that these definitions are not enclosed in a namespace. Which is fine, since they are not meant to be instantiated as objects. But I still need to enclose them when documenting my own partial specializations depending on my program-defined types. |
|
https://wg21.link/LWG3193 generalizes this and other linked issues. |
Duplicate of #2786. |
These use the Requires: element which, according to [structure.specifications], are for describing function semantics. They also use unconventional Type: and Value: elements.
array
's description can be done following the conventions:I < N
shall betrue
.As they are, there is no conventional space for the description of the
type
member of the partial specializations fortuple
andpair
.pair
's could be elevated from english wording to code, as inusing type = conditional_t<I == 0, T1, T2>;
.See https://wg21.link/tuple.helper, https://wg21.link/pair.astuple and https://wg21.link/array.tuple.
draft/source/utilities.tex
Lines 1792 to 1810 in 6a4eb32
draft/source/utilities.tex
Lines 885 to 895 in 6a4eb32
draft/source/containers.tex
Lines 3400 to 3411 in 6a4eb32
The text was updated successfully, but these errors were encountered: