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

Parallel equal #1193

Merged
merged 5 commits into from
Jul 15, 2014
Merged

Parallel equal #1193

merged 5 commits into from
Jul 15, 2014

Conversation

hkaiser
Copy link
Member

@hkaiser hkaiser commented Jul 13, 2014

This adds 4 more algorithms related to #1141: Implement N3989 on top of HPX

@hkaiser hkaiser added this to the 0.9.9 milestone Jul 13, 2014
{
try {
return detail::algorithm_result<ExPolicy, bool>::get(
std::equal(first1, last1, first2, std::forward<F>(f)));
Copy link
Member

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.

Copy link
Member Author

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).

Copy link
Member

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.

@K-ballo
Copy link
Member

K-ballo commented Jul 14, 2014

Looks good to me

hkaiser added a commit that referenced this pull request Jul 15, 2014
@hkaiser hkaiser merged commit 933c06f into master Jul 15, 2014
@hkaiser hkaiser deleted the parallel_equal branch July 15, 2014 02:18
@hkaiser hkaiser mentioned this pull request Aug 2, 2014
47 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants