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

[unord.req] should use dual-range is_permutation() #235

Closed
StephanTLavavej opened this issue Nov 21, 2013 · 1 comment
Closed

[unord.req] should use dual-range is_permutation() #235

StephanTLavavej opened this issue Nov 21, 2013 · 1 comment

Comments

@StephanTLavavej
Copy link
Contributor

Thanks to N3797 25.2.12 [alg.is_permutation]/3 "If last1 - first1 != last2 - first2, return false.", we can simplify 23.2.5 [unord.req]/12
from: "such that distance(Ea1, Ea2) == distance(Eb1, Eb2) and is_permutation(Ea1, Ea2, Eb1) returns true."
to: "such that is_permutation(Ea1, Ea2, Eb1, Eb2) returns true."

@AlisdairM
Copy link
Contributor

Per the comment in #240 (noted by cpplearner) this was resolved as library issue http://cplusplus.github.io/LWG/lwg-defects.html#2257 in C++14, and this issue can be safely closed.

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

2 participants