Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Enable zip_iterator to satisfy C++20 std::input_iterator constraint #1408
Enable zip_iterator to satisfy C++20 std::input_iterator constraint #1408
Changes from 10 commits
b2ff3d4
118c5c8
8512e47
d47996b
854ca16
5e8ae8d
f95ae0b
643a34a
df72987
df1344e
0e2b946
1836d57
c9df306
134416e
7686e3e
bb05e9b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
I'm having trouble understanding
TQual
andUQual
.Are they just something which is required for this function for it to be of use to the Standard library implementation?
Perhaps it uses these to add type qualifiers like
const
to the types?Its not very clear to me as it is written in the standard.
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.
They are required for this function to be used by the standard library implementation. My understanding is that they add cvref-qualifiers to the types.
It is mentioned briefly in the explanation of std::common_reference's required behavior:
"Otherwise, if
std::basic_common_reference<std::remove_cvref_t<T1>, std::remove_cvref_t<T2>, T1Q, T2Q>::type
exists, where TiQ is a unary alias template such that TiQ is U with the addition of Ti's cv- and reference qualifiers, then the member type type names that type;"