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

docs: fix & improve parallel algorithms documentation 2 #5939

Merged
merged 10 commits into from
Jul 13, 2022

Conversation

bhumitattarde
Copy link
Contributor

No description provided.

/// The \a count algorithm returns the number of elements
/// satisfying the given criteria.
///
template <typename InIter, typename T>
typename util::detail::algorithm_result<ExPolicy,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Synchronous algorithms (the ones not taking an execution policy) never return the algorithm_result_t<> helper type, but always the actual return type (here typename std::iterator_traits<InIter>::difference_type).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, missed this somehow. Check now?

/// satisfying the given criteria.
///
template <typename InIter, typename F>
typename std::iterator_traits<InIter>::difference_type>::type
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
typename std::iterator_traits<InIter>::difference_type>::type
typename std::iterator_traits<InIter>::difference_type

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check now?

@@ -276,7 +276,7 @@ namespace hpx {
/// \a inclusive_scan may be non-deterministic.
///
template <typename ExPolicy, typename FwdIter1, typename FwdIter2,
typename T, typename Op>
typename Op, typename T>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the rationale for this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, Op is the fourth template parameter and T is fifth. Am I missing something?

Copy link
Member

@hkaiser hkaiser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@hkaiser
Copy link
Member

hkaiser commented Jul 13, 2022

bors merge

@hkaiser hkaiser modified the milestones: 1.9.0, 1.8.1 Jul 13, 2022
@hkaiser hkaiser mentioned this pull request Jul 13, 2022
@bors
Copy link

bors bot commented Jul 13, 2022

Build succeeded:

@bors bors bot merged commit d0dbb41 into STEllAR-GROUP:master Jul 13, 2022
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