Skip to content
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

[alg.is.permutation]/6 #4554

Closed
sim9108 opened this issue Mar 23, 2021 · 1 comment
Closed

[alg.is.permutation]/6 #4554

sim9108 opened this issue Mar 23, 2021 · 1 comment

Comments

@sim9108
Copy link

sim9108 commented Mar 23, 2021

ranges::equal(first1, last1, pfirst, plast, pred, proj1, proj2)
=>
ranges::equal(first1, last1, first2, last2, pred, proj1, proj2)

@jwakely
Copy link
Member

jwakely commented Mar 23, 2021

No, I don't think that would be correct. The point is that we're not requiring [first1,last1) and [first2,last2) to compare equal, we're requiring [first1,last1) and some permutation of [first2,last2) to compare equal. That permutation of [first2,last2) is what the range [pfirst,plast) denotes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants