Skip to content

Commit

Permalink
Use helper function rather than algorithm_result::get
Browse files Browse the repository at this point in the history
  • Loading branch information
Zak-K-Abdi committed Sep 5, 2024
1 parent f04a626 commit bdbd643
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ namespace hpx::parallel { namespace detail {
struct contains_subrange_helper<ExPolicy, T,
std::enable_if_t<!hpx::is_async_execution_policy_v<ExPolicy>>>
{
static bool get(T& itr, T& last)
static bool get_result(T& itr, T& last)
{
return itr != last;
}
Expand All @@ -96,7 +96,7 @@ namespace hpx::parallel { namespace detail {
struct contains_subrange_helper<ExPolicy, T,
std::enable_if_t<hpx::is_async_execution_policy_v<ExPolicy>>>
{
static hpx::future<bool> get(hpx::future<T>& itr, T& last)
static hpx::future<bool> get_result(hpx::future<T>& itr, T& last)
{
return itr.then(
[&last](hpx::future<T> it) { return it.get() != last; });
Expand Down Expand Up @@ -136,8 +136,8 @@ namespace hpx::parallel { namespace detail {
HPX_MOVE(pred), HPX_FORWARD(Proj1, proj1),
HPX_FORWARD(Proj2, proj2));

return util::detail::algorithm_result<ExPolicy, bool>::get(
contains_subrange_helper<ExPolicy, FwdIter1>().get(itr, last1));
return contains_subrange_helper<ExPolicy, FwdIter1>().get_result(
itr, last1);
}
};

Expand Down

0 comments on commit bdbd643

Please sign in to comment.