-
-
Notifications
You must be signed in to change notification settings - Fork 437
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
Conversation
/// The \a count algorithm returns the number of elements | ||
/// satisfying the given criteria. | ||
/// | ||
template <typename InIter, typename T> | ||
typename util::detail::algorithm_result<ExPolicy, |
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.
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
).
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.
Yes, missed this somehow. Check now?
/// satisfying the given criteria. | ||
/// | ||
template <typename InIter, typename F> | ||
typename std::iterator_traits<InIter>::difference_type>::type |
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.
typename std::iterator_traits<InIter>::difference_type>::type | |
typename std::iterator_traits<InIter>::difference_type |
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.
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> |
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.
What's the rationale for this change?
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.
Here, Op
is the fourth template parameter and T
is fifth. Am I missing something?
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.
LGTM, thanks!
bors merge |
Build succeeded: |
No description provided.