Skip to content

Commit bdbd643

Browse files
committed
Use helper function rather than algorithm_result::get
1 parent f04a626 commit bdbd643

File tree

1 file changed

+4
-4
lines changed
  • libs/core/algorithms/include/hpx/parallel/container_algorithms

1 file changed

+4
-4
lines changed

libs/core/algorithms/include/hpx/parallel/container_algorithms/contains.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ namespace hpx::parallel { namespace detail {
8686
struct contains_subrange_helper<ExPolicy, T,
8787
std::enable_if_t<!hpx::is_async_execution_policy_v<ExPolicy>>>
8888
{
89-
static bool get(T& itr, T& last)
89+
static bool get_result(T& itr, T& last)
9090
{
9191
return itr != last;
9292
}
@@ -96,7 +96,7 @@ namespace hpx::parallel { namespace detail {
9696
struct contains_subrange_helper<ExPolicy, T,
9797
std::enable_if_t<hpx::is_async_execution_policy_v<ExPolicy>>>
9898
{
99-
static hpx::future<bool> get(hpx::future<T>& itr, T& last)
99+
static hpx::future<bool> get_result(hpx::future<T>& itr, T& last)
100100
{
101101
return itr.then(
102102
[&last](hpx::future<T> it) { return it.get() != last; });
@@ -136,8 +136,8 @@ namespace hpx::parallel { namespace detail {
136136
HPX_MOVE(pred), HPX_FORWARD(Proj1, proj1),
137137
HPX_FORWARD(Proj2, proj2));
138138

139-
return util::detail::algorithm_result<ExPolicy, bool>::get(
140-
contains_subrange_helper<ExPolicy, FwdIter1>().get(itr, last1));
139+
return contains_subrange_helper<ExPolicy, FwdIter1>().get_result(
140+
itr, last1);
141141
}
142142
};
143143

0 commit comments

Comments
 (0)