-
-
Notifications
You must be signed in to change notification settings - Fork 450
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
Parallel equal #1193
Parallel equal #1193
Conversation
{ | ||
try { | ||
return detail::algorithm_result<ExPolicy, bool>::get( | ||
std::equal(first1, last1, first2, std::forward<F>(f))); |
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.
Should call the "binary" form of std::equal
.
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.
The binary std::equal
is new for C++14 only and does not exist for all compilers yet (for instance MSVC does not implement it yet).
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.
Then something else should be done, the two algorithms have different requirements. Ranges of different length are valid input to the "binary" std::equal
, but not to the "unary" one.
Looks good to me |
This adds 4 more algorithms related to #1141: Implement N3989 on top of HPX