Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
#include <hpx/futures/future.hpp>
#include <hpx/type_support/unused.hpp>

#if defined(HPX_HAVE_STDEXEC)
// for is_sender
#include <hpx/execution_base/completion_signatures.hpp>
#endif

#include <type_traits>
#include <utility>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ void test_adjacent_difference_direct(Policy l, ExPolicy policy)
HPX_TEST(std::end(d) == it);
}

#if defined(HPX_HAVE_STDEXEC)
template <typename Policy, typename ExPolicy>
void test_adjacent_difference_sender(Policy l, ExPolicy&& policy)
{
Expand Down Expand Up @@ -132,7 +131,6 @@ void test_adjacent_difference_sender(Policy l, ExPolicy&& policy)
HPX_TEST(++std::begin(d) == result);
}
}
#endif

template <typename ExPolicy>
void test_adjacent_difference_async(ExPolicy&& p)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ void test_adjacent_find(ExPolicy policy, IteratorTag)
HPX_TEST(index == iterator(test_index));
}

#if defined(HPX_HAVE_STDEXEC)
template <typename LnPolicy, typename ExPolicy, typename IteratorTag>
void test_adjacent_find_sender(
LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
Expand Down Expand Up @@ -103,7 +102,6 @@ void test_adjacent_find_sender(
HPX_TEST(iterator(std::begin(c)) == result);
}
}
#endif

template <typename ExPolicy, typename IteratorTag>
void test_adjacent_find_async(ExPolicy p, IteratorTag)
Expand Down
2 changes: 0 additions & 2 deletions libs/core/algorithms/tests/unit/algorithms/all_of_tests.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ void test_all_of(ExPolicy&& policy, IteratorTag)
}
}

#if defined(HPX_HAVE_STDEXEC)
template <typename LnPolicy, typename ExPolicy, typename IteratorTag>
void test_all_of_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
{
Expand Down Expand Up @@ -104,7 +103,6 @@ void test_all_of_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
HPX_TEST_EQ(result, expected);
}
}
#endif

template <typename IteratorTag, typename Proj = hpx::identity>
void test_all_of_ranges_seq(IteratorTag, Proj proj = Proj())
Expand Down
2 changes: 0 additions & 2 deletions libs/core/algorithms/tests/unit/algorithms/any_of_tests.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ void test_any_of(ExPolicy&& policy, IteratorTag)
}
}

#if defined(HPX_HAVE_STDEXEC)
template <typename LnPolicy, typename ExPolicy, typename IteratorTag>
void test_any_of_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
{
Expand Down Expand Up @@ -105,7 +104,6 @@ void test_any_of_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
HPX_TEST_EQ(result, expected);
}
}
#endif

template <typename IteratorTag, typename Proj = hpx::identity>
void test_any_of_ranges_seq(IteratorTag, Proj proj = Proj())
Expand Down
2 changes: 0 additions & 2 deletions libs/core/algorithms/tests/unit/algorithms/copy_tests.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ void test_copy(ExPolicy&& policy, IteratorTag)
HPX_TEST_EQ(count, d.size());
}

#if defined(HPX_HAVE_STDEXEC)
template <typename LnPolicy, typename ExPolicy, typename IteratorTag>
void test_copy_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
{
Expand Down Expand Up @@ -107,7 +106,6 @@ void test_copy_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
}));
HPX_TEST_EQ(count, d.size());
}
#endif

template <typename ExPolicy, typename IteratorTag>
void test_copy_async(ExPolicy&& p, IteratorTag)
Expand Down
2 changes: 0 additions & 2 deletions libs/core/algorithms/tests/unit/algorithms/copyn_tests.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ void test_copy_n(ExPolicy&& policy, IteratorTag)
HPX_TEST_EQ(count, d.size());
}

#if defined(HPX_HAVE_STDEXEC)
template <typename LnPolicy, typename ExPolicy, typename IteratorTag>
void test_copy_n_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
{
Expand Down Expand Up @@ -111,7 +110,6 @@ void test_copy_n_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
}));
HPX_TEST_EQ(count, d.size());
}
#endif

template <typename ExPolicy, typename IteratorTag>
void test_copy_n_async(ExPolicy&& p, IteratorTag)
Expand Down
2 changes: 0 additions & 2 deletions libs/core/algorithms/tests/unit/algorithms/count_tests.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ void test_count(ExPolicy&& policy, IteratorTag)
HPX_TEST_EQ(num_items, static_cast<std::int64_t>(find_count));
}

#if defined(HPX_HAVE_STDEXEC)
template <typename LnPolicy, typename ExPolicy, typename IteratorTag>
void test_count_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
{
Expand Down Expand Up @@ -106,7 +105,6 @@ void test_count_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)

HPX_TEST_EQ(num_items, static_cast<std::int64_t>(find_count));
}
#endif

template <typename ExPolicy, typename IteratorTag>
void test_count_async(ExPolicy&& p, IteratorTag)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ void test_count_if(ExPolicy&& policy, IteratorTag)
HPX_TEST_EQ(num_items, 50u);
}

#if defined(HPX_HAVE_STDEXEC)
template <typename LnPolicy, typename ExPolicy, typename IteratorTag>
void test_count_if_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
{
Expand Down Expand Up @@ -113,7 +112,6 @@ void test_count_if_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)

HPX_TEST_EQ(num_items, 50u);
}
#endif

template <typename ExPolicy, typename IteratorTag>
void test_count_if_async(ExPolicy&& p, IteratorTag)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ void test_destroy(ExPolicy&& policy, IteratorTag)
std::free(p);
}

#if defined(HPX_HAVE_STDEXEC)
template <typename LnPolicy, typename ExPolicy, typename IteratorTag>
void test_destroy_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
{
Expand Down Expand Up @@ -131,7 +130,6 @@ void test_destroy_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)

std::free(p);
}
#endif

template <typename ExPolicy, typename IteratorTag>
void test_destroy_async(ExPolicy&& policy, IteratorTag)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,6 @@ void test_equal_binary_bad_alloc_async(ExPolicy&& p, IteratorTag)

////////////////////////////////////////////////////////////////////////////////

#if defined(HPX_HAVE_STDEXEC)
template <typename LnPolicy, typename ExPolicy, typename IteratorTag>
void test_equal_binary_sender(
LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
Expand Down Expand Up @@ -521,7 +520,6 @@ void test_equal_binary_sender(
HPX_TEST_EQ(result, expected);
}
}
#endif

////////////////////////////////////////////////////////////////////////////////

Expand Down Expand Up @@ -566,7 +564,6 @@ void test_equal_binary_edge_cases(ExPolicy&& policy, IteratorTag)
}
}

#if defined(HPX_HAVE_STDEXEC)
template <typename LnPolicy, typename ExPolicy, typename IteratorTag>
void test_equal_binary_edge_cases_sender(
LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
Expand Down Expand Up @@ -635,4 +632,3 @@ void test_equal_binary_edge_cases_sender(
HPX_TEST(!result);
}
}
#endif
4 changes: 0 additions & 4 deletions libs/core/algorithms/tests/unit/algorithms/equal_tests.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ void test_equal1(ExPolicy&& policy, IteratorTag)
}
}

#if defined(HPX_HAVE_STDEXEC)
template <typename LnPolicy, typename ExPolicy, typename IteratorTag>
void test_equal1_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
{
Expand Down Expand Up @@ -173,7 +172,6 @@ void test_equal1_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
HPX_TEST(result);
}
}
#endif

template <typename ExPolicy, typename IteratorTag>
void test_equal1_async(ExPolicy&& p, IteratorTag)
Expand Down Expand Up @@ -296,7 +294,6 @@ void test_equal2(ExPolicy&& policy, IteratorTag)
}
}

#if defined(HPX_HAVE_STDEXEC)
template <typename LnPolicy, typename ExPolicy, typename IteratorTag>
void test_equal2_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
{
Expand Down Expand Up @@ -365,7 +362,6 @@ void test_equal2_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
HPX_TEST(result);
}
}
#endif

template <typename ExPolicy, typename IteratorTag>
void test_equal2_async(ExPolicy&& p, IteratorTag)
Expand Down
2 changes: 0 additions & 2 deletions libs/core/algorithms/tests/unit/algorithms/fill_tests.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ void test_fill(ExPolicy policy, IteratorTag)
HPX_TEST_EQ(count, c.size());
}

#if defined(HPX_HAVE_STDEXEC)
template <typename LnPolicy, typename ExPolicy, typename IteratorTag>
void test_fill_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
{
Expand Down Expand Up @@ -101,7 +100,6 @@ void test_fill_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
});
HPX_TEST_EQ(count, c.size());
}
#endif

template <typename ExPolicy, typename IteratorTag>
void test_fill_async(ExPolicy p, IteratorTag)
Expand Down
2 changes: 0 additions & 2 deletions libs/core/algorithms/tests/unit/algorithms/filln_tests.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ void test_fill_n(ExPolicy policy, IteratorTag)
HPX_TEST_EQ(count, c.size());
}

#if defined(HPX_HAVE_STDEXEC)
template <typename LnPolicy, typename ExPolicy, typename IteratorTag>
void test_fill_n_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
{
Expand Down Expand Up @@ -100,7 +99,6 @@ void test_fill_n_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
});
HPX_TEST_EQ(count, c.size());
}
#endif

template <typename ExPolicy, typename IteratorTag>
void test_fill_n_async(ExPolicy p, IteratorTag)
Expand Down
4 changes: 0 additions & 4 deletions libs/core/algorithms/tests/unit/algorithms/find_tests.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ void test_find(ExPolicy&& policy, IteratorTag)
HPX_TEST(index == iterator(test_index));
}

#if defined(HPX_HAVE_STDEXEC)
template <typename Policy, typename ExPolicy, typename IteratorTag>
void test_find_explicit_sender_direct(Policy l, ExPolicy&& policy, IteratorTag)
{
Expand Down Expand Up @@ -129,7 +128,6 @@ void test_find_explicit_sender(Policy l, ExPolicy&& policy, IteratorTag)

HPX_TEST(hpx::get<0>(*result) == iterator(test_index));
}
#endif

template <typename ExPolicy, typename IteratorTag>
void test_find_async(ExPolicy&& p, IteratorTag)
Expand All @@ -155,7 +153,6 @@ void test_find_async(ExPolicy&& p, IteratorTag)
HPX_TEST(f.get() == iterator(test_index));
}

#if defined(HPX_HAVE_STDEXEC)
template <typename Policy, typename ExPolicy, typename IteratorTag>
void test_find_explicit_sender_direct_async(Policy l, ExPolicy&& p, IteratorTag)
{
Expand Down Expand Up @@ -186,7 +183,6 @@ void test_find_explicit_sender_direct_async(Policy l, ExPolicy&& p, IteratorTag)

HPX_TEST(result == iterator(test_index));
}
#endif

///////////////////////////////////////////////////////////////////////////////
template <typename IteratorTag>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ void test_find_end1(ExPolicy&& policy, IteratorTag)
HPX_TEST(index == test_index);
}

#if defined(HPX_HAVE_STDEXEC)
template <typename LnPolicy, typename ExPolicy, typename IteratorTag>
void test_find_end1_sender(
LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
Expand Down Expand Up @@ -145,7 +144,6 @@ void test_find_end1_sender(
HPX_TEST(iterator(std::begin(c)) == result);
}
}
#endif

template <typename ExPolicy, typename IteratorTag>
void test_find_end1_async(ExPolicy&& p, IteratorTag)
Expand Down Expand Up @@ -227,7 +225,6 @@ void test_find_end2(ExPolicy&& policy, IteratorTag)
HPX_TEST(index == test_index);
}

#if defined(HPX_HAVE_STDEXEC)
template <typename LnPolicy, typename ExPolicy, typename IteratorTag>
void test_find_end2_sender(
LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
Expand Down Expand Up @@ -266,7 +263,6 @@ void test_find_end2_sender(

HPX_TEST(index == test_index);
}
#endif

template <typename ExPolicy, typename IteratorTag>
void test_find_end2_async(ExPolicy&& p, IteratorTag)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ void test_find_first_of(ExPolicy&& policy, IteratorTag)
HPX_TEST(index == iterator(test_index));
}

#if defined(HPX_HAVE_STDEXEC)
template <typename LnPolicy, typename ExPolicy, typename IteratorTag>
void test_find_first_of_sender(
LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
Expand Down Expand Up @@ -112,7 +111,6 @@ void test_find_first_of_sender(

HPX_TEST(index == iterator(test_index));
}
#endif

template <typename ExPolicy, typename IteratorTag>
void test_find_first_of_async(ExPolicy&& p, IteratorTag)
Expand Down
2 changes: 0 additions & 2 deletions libs/core/algorithms/tests/unit/algorithms/findif_tests.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ void test_find_if(ExPolicy&& policy, IteratorTag)
HPX_TEST(index == iterator(test_index));
}

#if defined(HPX_HAVE_STDEXEC)
template <typename LnPolicy, typename ExPolicy, typename IteratorTag>
void test_find_if_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
{
Expand Down Expand Up @@ -101,7 +100,6 @@ void test_find_if_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)

HPX_TEST(index == iterator(test_index));
}
#endif

template <typename ExPolicy, typename IteratorTag>
void test_find_if_async(ExPolicy&& p, IteratorTag)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ void test_find_if_not(ExPolicy&& policy, IteratorTag)
HPX_TEST(index == iterator(test_index));
}

#if defined(HPX_HAVE_STDEXEC)
template <typename LnPolicy, typename ExPolicy, typename IteratorTag>
void test_find_if_not_sender(
LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
Expand Down Expand Up @@ -101,7 +100,6 @@ void test_find_if_not_sender(

HPX_TEST(index == iterator(test_index));
}
#endif

template <typename ExPolicy, typename IteratorTag>
void test_find_if_not_async(ExPolicy&& p, IteratorTag)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,6 @@ void test_for_each_n(ExPolicy policy, IteratorTag)
HPX_TEST_EQ(count, c.size());
}

#if defined(HPX_HAVE_STDEXEC)
template <typename LnPolicy, typename ExPolicy, typename IteratorTag>
void test_for_each_n_sender(
LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
Expand Down Expand Up @@ -410,7 +409,6 @@ void test_for_each_n_sender(
});
HPX_TEST_EQ(count, c.size());
}
#endif

template <typename ExPolicy, typename IteratorTag>
void test_for_each_n_async(ExPolicy p, IteratorTag)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ void test_generate(ExPolicy&& policy, IteratorTag)
HPX_TEST_EQ(count, c.size());
}

#if defined(HPX_HAVE_STDEXEC)
template <typename LnPolicy, typename ExPolicy, typename IteratorTag>
void test_generate_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
{
Expand Down Expand Up @@ -104,7 +103,6 @@ void test_generate_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag)
});
HPX_TEST_EQ(count, c.size());
}
#endif

template <typename ExPolicy, typename IteratorTag>
void test_generate_async(ExPolicy&& p, IteratorTag)
Expand Down
Loading
Loading