diff --git a/libs/core/algorithms/include/hpx/parallel/util/detail/algorithm_result.hpp b/libs/core/algorithms/include/hpx/parallel/util/detail/algorithm_result.hpp index ae04cb021c5f..a4866cb72a7d 100644 --- a/libs/core/algorithms/include/hpx/parallel/util/detail/algorithm_result.hpp +++ b/libs/core/algorithms/include/hpx/parallel/util/detail/algorithm_result.hpp @@ -18,10 +18,8 @@ #include #include -#if defined(HPX_HAVE_STDEXEC) // for is_sender #include -#endif #include #include diff --git a/libs/core/algorithms/tests/unit/algorithms/adjacentdifference_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/adjacentdifference_tests.hpp index 0bd32e56d915..e4c7a2667553 100644 --- a/libs/core/algorithms/tests/unit/algorithms/adjacentdifference_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/adjacentdifference_tests.hpp @@ -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 void test_adjacent_difference_sender(Policy l, ExPolicy&& policy) { @@ -132,7 +131,6 @@ void test_adjacent_difference_sender(Policy l, ExPolicy&& policy) HPX_TEST(++std::begin(d) == result); } } -#endif template void test_adjacent_difference_async(ExPolicy&& p) diff --git a/libs/core/algorithms/tests/unit/algorithms/adjacentfind_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/adjacentfind_tests.hpp index 5e34a2527791..ef89014cc5d5 100644 --- a/libs/core/algorithms/tests/unit/algorithms/adjacentfind_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/adjacentfind_tests.hpp @@ -55,7 +55,6 @@ void test_adjacent_find(ExPolicy policy, IteratorTag) HPX_TEST(index == iterator(test_index)); } -#if defined(HPX_HAVE_STDEXEC) template void test_adjacent_find_sender( LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) @@ -103,7 +102,6 @@ void test_adjacent_find_sender( HPX_TEST(iterator(std::begin(c)) == result); } } -#endif template void test_adjacent_find_async(ExPolicy p, IteratorTag) diff --git a/libs/core/algorithms/tests/unit/algorithms/all_of_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/all_of_tests.hpp index e229122b5633..cd4873aa9332 100644 --- a/libs/core/algorithms/tests/unit/algorithms/all_of_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/all_of_tests.hpp @@ -70,7 +70,6 @@ void test_all_of(ExPolicy&& policy, IteratorTag) } } -#if defined(HPX_HAVE_STDEXEC) template void test_all_of_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) { @@ -104,7 +103,6 @@ void test_all_of_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) HPX_TEST_EQ(result, expected); } } -#endif template void test_all_of_ranges_seq(IteratorTag, Proj proj = Proj()) diff --git a/libs/core/algorithms/tests/unit/algorithms/any_of_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/any_of_tests.hpp index d4b601249b37..021221b430d8 100644 --- a/libs/core/algorithms/tests/unit/algorithms/any_of_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/any_of_tests.hpp @@ -70,7 +70,6 @@ void test_any_of(ExPolicy&& policy, IteratorTag) } } -#if defined(HPX_HAVE_STDEXEC) template void test_any_of_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) { @@ -105,7 +104,6 @@ void test_any_of_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) HPX_TEST_EQ(result, expected); } } -#endif template void test_any_of_ranges_seq(IteratorTag, Proj proj = Proj()) diff --git a/libs/core/algorithms/tests/unit/algorithms/copy_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/copy_tests.hpp index 1e678fb6d29c..effba10741d2 100644 --- a/libs/core/algorithms/tests/unit/algorithms/copy_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/copy_tests.hpp @@ -73,7 +73,6 @@ void test_copy(ExPolicy&& policy, IteratorTag) HPX_TEST_EQ(count, d.size()); } -#if defined(HPX_HAVE_STDEXEC) template void test_copy_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) { @@ -107,7 +106,6 @@ void test_copy_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) })); HPX_TEST_EQ(count, d.size()); } -#endif template void test_copy_async(ExPolicy&& p, IteratorTag) diff --git a/libs/core/algorithms/tests/unit/algorithms/copyn_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/copyn_tests.hpp index f8ca0f3dcb27..f1213dda3ad3 100644 --- a/libs/core/algorithms/tests/unit/algorithms/copyn_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/copyn_tests.hpp @@ -74,7 +74,6 @@ void test_copy_n(ExPolicy&& policy, IteratorTag) HPX_TEST_EQ(count, d.size()); } -#if defined(HPX_HAVE_STDEXEC) template void test_copy_n_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) { @@ -111,7 +110,6 @@ void test_copy_n_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) })); HPX_TEST_EQ(count, d.size()); } -#endif template void test_copy_n_async(ExPolicy&& p, IteratorTag) diff --git a/libs/core/algorithms/tests/unit/algorithms/count_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/count_tests.hpp index 27062db0d269..d24642f9bee3 100644 --- a/libs/core/algorithms/tests/unit/algorithms/count_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/count_tests.hpp @@ -73,7 +73,6 @@ void test_count(ExPolicy&& policy, IteratorTag) HPX_TEST_EQ(num_items, static_cast(find_count)); } -#if defined(HPX_HAVE_STDEXEC) template void test_count_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) { @@ -106,7 +105,6 @@ void test_count_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) HPX_TEST_EQ(num_items, static_cast(find_count)); } -#endif template void test_count_async(ExPolicy&& p, IteratorTag) diff --git a/libs/core/algorithms/tests/unit/algorithms/countif_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/countif_tests.hpp index 3dd04ff8be96..92383a7beb5a 100644 --- a/libs/core/algorithms/tests/unit/algorithms/countif_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/countif_tests.hpp @@ -83,7 +83,6 @@ void test_count_if(ExPolicy&& policy, IteratorTag) HPX_TEST_EQ(num_items, 50u); } -#if defined(HPX_HAVE_STDEXEC) template void test_count_if_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) { @@ -113,7 +112,6 @@ void test_count_if_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) HPX_TEST_EQ(num_items, 50u); } -#endif template void test_count_if_async(ExPolicy&& p, IteratorTag) diff --git a/libs/core/algorithms/tests/unit/algorithms/destroy_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/destroy_tests.hpp index 68f7a1deaa41..b872013682d3 100644 --- a/libs/core/algorithms/tests/unit/algorithms/destroy_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/destroy_tests.hpp @@ -98,7 +98,6 @@ void test_destroy(ExPolicy&& policy, IteratorTag) std::free(p); } -#if defined(HPX_HAVE_STDEXEC) template void test_destroy_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) { @@ -131,7 +130,6 @@ void test_destroy_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) std::free(p); } -#endif template void test_destroy_async(ExPolicy&& policy, IteratorTag) diff --git a/libs/core/algorithms/tests/unit/algorithms/equal_binary_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/equal_binary_tests.hpp index 9754a0934e99..89d0e0b5241a 100644 --- a/libs/core/algorithms/tests/unit/algorithms/equal_binary_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/equal_binary_tests.hpp @@ -465,7 +465,6 @@ void test_equal_binary_bad_alloc_async(ExPolicy&& p, IteratorTag) //////////////////////////////////////////////////////////////////////////////// -#if defined(HPX_HAVE_STDEXEC) template void test_equal_binary_sender( LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) @@ -521,7 +520,6 @@ void test_equal_binary_sender( HPX_TEST_EQ(result, expected); } } -#endif //////////////////////////////////////////////////////////////////////////////// @@ -566,7 +564,6 @@ void test_equal_binary_edge_cases(ExPolicy&& policy, IteratorTag) } } -#if defined(HPX_HAVE_STDEXEC) template void test_equal_binary_edge_cases_sender( LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) @@ -635,4 +632,3 @@ void test_equal_binary_edge_cases_sender( HPX_TEST(!result); } } -#endif diff --git a/libs/core/algorithms/tests/unit/algorithms/equal_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/equal_tests.hpp index 81ca559e8e8a..f7eb4e8b2388 100644 --- a/libs/core/algorithms/tests/unit/algorithms/equal_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/equal_tests.hpp @@ -105,7 +105,6 @@ void test_equal1(ExPolicy&& policy, IteratorTag) } } -#if defined(HPX_HAVE_STDEXEC) template void test_equal1_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) { @@ -173,7 +172,6 @@ void test_equal1_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) HPX_TEST(result); } } -#endif template void test_equal1_async(ExPolicy&& p, IteratorTag) @@ -296,7 +294,6 @@ void test_equal2(ExPolicy&& policy, IteratorTag) } } -#if defined(HPX_HAVE_STDEXEC) template void test_equal2_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) { @@ -365,7 +362,6 @@ void test_equal2_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) HPX_TEST(result); } } -#endif template void test_equal2_async(ExPolicy&& p, IteratorTag) diff --git a/libs/core/algorithms/tests/unit/algorithms/fill_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/fill_tests.hpp index 82423d46762e..ddfb2d98b1cf 100644 --- a/libs/core/algorithms/tests/unit/algorithms/fill_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/fill_tests.hpp @@ -71,7 +71,6 @@ void test_fill(ExPolicy policy, IteratorTag) HPX_TEST_EQ(count, c.size()); } -#if defined(HPX_HAVE_STDEXEC) template void test_fill_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) { @@ -101,7 +100,6 @@ void test_fill_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) }); HPX_TEST_EQ(count, c.size()); } -#endif template void test_fill_async(ExPolicy p, IteratorTag) diff --git a/libs/core/algorithms/tests/unit/algorithms/filln_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/filln_tests.hpp index 829e11e5ca14..c5ecb92b7d5d 100644 --- a/libs/core/algorithms/tests/unit/algorithms/filln_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/filln_tests.hpp @@ -70,7 +70,6 @@ void test_fill_n(ExPolicy policy, IteratorTag) HPX_TEST_EQ(count, c.size()); } -#if defined(HPX_HAVE_STDEXEC) template void test_fill_n_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) { @@ -100,7 +99,6 @@ void test_fill_n_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) }); HPX_TEST_EQ(count, c.size()); } -#endif template void test_fill_n_async(ExPolicy p, IteratorTag) diff --git a/libs/core/algorithms/tests/unit/algorithms/find_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/find_tests.hpp index 966ef7fb9c00..55ff4fed5d96 100644 --- a/libs/core/algorithms/tests/unit/algorithms/find_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/find_tests.hpp @@ -71,7 +71,6 @@ void test_find(ExPolicy&& policy, IteratorTag) HPX_TEST(index == iterator(test_index)); } -#if defined(HPX_HAVE_STDEXEC) template void test_find_explicit_sender_direct(Policy l, ExPolicy&& policy, IteratorTag) { @@ -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 void test_find_async(ExPolicy&& p, IteratorTag) @@ -155,7 +153,6 @@ void test_find_async(ExPolicy&& p, IteratorTag) HPX_TEST(f.get() == iterator(test_index)); } -#if defined(HPX_HAVE_STDEXEC) template void test_find_explicit_sender_direct_async(Policy l, ExPolicy&& p, IteratorTag) { @@ -186,7 +183,6 @@ void test_find_explicit_sender_direct_async(Policy l, ExPolicy&& p, IteratorTag) HPX_TEST(result == iterator(test_index)); } -#endif /////////////////////////////////////////////////////////////////////////////// template diff --git a/libs/core/algorithms/tests/unit/algorithms/findend_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/findend_tests.hpp index ce8afac9652d..a03da83235c5 100644 --- a/libs/core/algorithms/tests/unit/algorithms/findend_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/findend_tests.hpp @@ -81,7 +81,6 @@ void test_find_end1(ExPolicy&& policy, IteratorTag) HPX_TEST(index == test_index); } -#if defined(HPX_HAVE_STDEXEC) template void test_find_end1_sender( LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) @@ -145,7 +144,6 @@ void test_find_end1_sender( HPX_TEST(iterator(std::begin(c)) == result); } } -#endif template void test_find_end1_async(ExPolicy&& p, IteratorTag) @@ -227,7 +225,6 @@ void test_find_end2(ExPolicy&& policy, IteratorTag) HPX_TEST(index == test_index); } -#if defined(HPX_HAVE_STDEXEC) template void test_find_end2_sender( LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) @@ -266,7 +263,6 @@ void test_find_end2_sender( HPX_TEST(index == test_index); } -#endif template void test_find_end2_async(ExPolicy&& p, IteratorTag) diff --git a/libs/core/algorithms/tests/unit/algorithms/findfirstof_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/findfirstof_tests.hpp index 97cff1921a5f..741c8b1f1984 100644 --- a/libs/core/algorithms/tests/unit/algorithms/findfirstof_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/findfirstof_tests.hpp @@ -76,7 +76,6 @@ void test_find_first_of(ExPolicy&& policy, IteratorTag) HPX_TEST(index == iterator(test_index)); } -#if defined(HPX_HAVE_STDEXEC) template void test_find_first_of_sender( LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) @@ -112,7 +111,6 @@ void test_find_first_of_sender( HPX_TEST(index == iterator(test_index)); } -#endif template void test_find_first_of_async(ExPolicy&& p, IteratorTag) diff --git a/libs/core/algorithms/tests/unit/algorithms/findif_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/findif_tests.hpp index bea933478008..dd3f9992a082 100644 --- a/libs/core/algorithms/tests/unit/algorithms/findif_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/findif_tests.hpp @@ -69,7 +69,6 @@ void test_find_if(ExPolicy&& policy, IteratorTag) HPX_TEST(index == iterator(test_index)); } -#if defined(HPX_HAVE_STDEXEC) template void test_find_if_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) { @@ -101,7 +100,6 @@ void test_find_if_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) HPX_TEST(index == iterator(test_index)); } -#endif template void test_find_if_async(ExPolicy&& p, IteratorTag) diff --git a/libs/core/algorithms/tests/unit/algorithms/findifnot_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/findifnot_tests.hpp index 2607e4cd9bf6..6173c200f363 100644 --- a/libs/core/algorithms/tests/unit/algorithms/findifnot_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/findifnot_tests.hpp @@ -68,7 +68,6 @@ void test_find_if_not(ExPolicy&& policy, IteratorTag) HPX_TEST(index == iterator(test_index)); } -#if defined(HPX_HAVE_STDEXEC) template void test_find_if_not_sender( LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) @@ -101,7 +100,6 @@ void test_find_if_not_sender( HPX_TEST(index == iterator(test_index)); } -#endif template void test_find_if_not_async(ExPolicy&& p, IteratorTag) diff --git a/libs/core/algorithms/tests/unit/algorithms/foreach_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/foreach_tests.hpp index 81427e4ea3e7..09ad3462800b 100644 --- a/libs/core/algorithms/tests/unit/algorithms/foreach_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/foreach_tests.hpp @@ -373,7 +373,6 @@ void test_for_each_n(ExPolicy policy, IteratorTag) HPX_TEST_EQ(count, c.size()); } -#if defined(HPX_HAVE_STDEXEC) template void test_for_each_n_sender( LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) @@ -410,7 +409,6 @@ void test_for_each_n_sender( }); HPX_TEST_EQ(count, c.size()); } -#endif template void test_for_each_n_async(ExPolicy p, IteratorTag) diff --git a/libs/core/algorithms/tests/unit/algorithms/generate_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/generate_tests.hpp index 0cb50f8cb23b..5b3378e5c71c 100644 --- a/libs/core/algorithms/tests/unit/algorithms/generate_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/generate_tests.hpp @@ -72,7 +72,6 @@ void test_generate(ExPolicy&& policy, IteratorTag) HPX_TEST_EQ(count, c.size()); } -#if defined(HPX_HAVE_STDEXEC) template void test_generate_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) { @@ -104,7 +103,6 @@ void test_generate_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) }); HPX_TEST_EQ(count, c.size()); } -#endif template void test_generate_async(ExPolicy&& p, IteratorTag) diff --git a/libs/core/algorithms/tests/unit/algorithms/generaten_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/generaten_tests.hpp index 0ac7b9b44a8e..a60d3bed7026 100644 --- a/libs/core/algorithms/tests/unit/algorithms/generaten_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/generaten_tests.hpp @@ -68,7 +68,6 @@ void test_generate_n(ExPolicy&& policy, IteratorTag) HPX_TEST_EQ(count, c.size()); } -#if defined(HPX_HAVE_STDEXEC) template void test_generate_n_sender( LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) @@ -100,7 +99,6 @@ void test_generate_n_sender( }); HPX_TEST_EQ(count, c.size()); } -#endif template void test_generate_n_async(ExPolicy&& p, IteratorTag) diff --git a/libs/core/algorithms/tests/unit/algorithms/is_heap_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/is_heap_tests.hpp index 5dba32d5834b..2d0b759f58ad 100644 --- a/libs/core/algorithms/tests/unit/algorithms/is_heap_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/is_heap_tests.hpp @@ -143,7 +143,6 @@ void test_is_heap( } } -#if defined(HPX_HAVE_STDEXEC) template void test_is_heap_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) { @@ -272,7 +271,6 @@ void test_is_heap_until_sender( HPX_TEST(result.base() == solution); } } -#endif template void test_is_heap_with_pred( diff --git a/libs/core/algorithms/tests/unit/algorithms/is_sorted_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/is_sorted_tests.hpp index 98c46a6047ef..f18733eee3b9 100644 --- a/libs/core/algorithms/tests/unit/algorithms/is_sorted_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/is_sorted_tests.hpp @@ -423,7 +423,6 @@ void test_sorted_bad_alloc_seq(IteratorTag) HPX_TEST(caught_bad_alloc); } -#if defined(HPX_HAVE_STDEXEC) template void test_is_sorted_sender( LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) @@ -476,4 +475,3 @@ void test_is_sorted_sender( HPX_TEST(is_ordered); } } -#endif diff --git a/libs/core/algorithms/tests/unit/algorithms/mismatch_binary_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/mismatch_binary_tests.hpp index 10e5fd4b99a7..c241276c62ce 100644 --- a/libs/core/algorithms/tests/unit/algorithms/mismatch_binary_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/mismatch_binary_tests.hpp @@ -483,7 +483,6 @@ void test_mismatch_binary_bad_alloc_async(ExPolicy&& p, IteratorTag) //////////////////////////////////////////////////////////////////////////////// -#if defined(HPX_HAVE_STDEXEC) template void test_mismatch_binary1_sender( LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) @@ -607,4 +606,3 @@ void test_mismatch_binary2_sender( HPX_TEST(result.second == std::begin(c2)); } } -#endif diff --git a/libs/core/algorithms/tests/unit/algorithms/mismatch_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/mismatch_tests.hpp index d8c342a2b613..54404906f224 100644 --- a/libs/core/algorithms/tests/unit/algorithms/mismatch_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/mismatch_tests.hpp @@ -481,7 +481,6 @@ void test_mismatch_bad_alloc_async(ExPolicy&& p, IteratorTag) //////////////////////////////////////////////////////////////////////////////// -#if defined(HPX_HAVE_STDEXEC) template void test_mismatch_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) { @@ -552,4 +551,3 @@ void test_mismatch_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) HPX_TEST(result.second == std::begin(c2)); } } -#endif diff --git a/libs/core/algorithms/tests/unit/algorithms/none_of_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/none_of_tests.hpp index 8176df28cf5a..b9d655d84777 100644 --- a/libs/core/algorithms/tests/unit/algorithms/none_of_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/none_of_tests.hpp @@ -70,7 +70,6 @@ void test_none_of(ExPolicy&& policy, IteratorTag) } } -#if defined(HPX_HAVE_STDEXEC) template void test_none_of_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) { @@ -104,7 +103,6 @@ void test_none_of_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) HPX_TEST_EQ(result, expected); } } -#endif template void test_none_of_ranges_seq(IteratorTag, Proj proj = Proj()) diff --git a/libs/core/algorithms/tests/unit/algorithms/reduce_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/reduce_tests.hpp index d1c7c3b60bb1..046ba0539446 100644 --- a/libs/core/algorithms/tests/unit/algorithms/reduce_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/reduce_tests.hpp @@ -345,7 +345,6 @@ void test_reduce_bad_alloc_async(ExPolicy p, IteratorTag) //////////////////////////////////////////////////////////////////////////////// -#if defined(HPX_HAVE_STDEXEC) template void test_reduce_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) { @@ -387,4 +386,3 @@ void test_reduce_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) HPX_TEST_EQ(result, val); } } -#endif diff --git a/libs/core/algorithms/tests/unit/algorithms/remove_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/remove_tests.hpp index a4d8e9dcb2a5..8a412ea6c709 100644 --- a/libs/core/algorithms/tests/unit/algorithms/remove_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/remove_tests.hpp @@ -694,7 +694,6 @@ void test_remove_bad_alloc(bool test_for_remove_if = false) //////////////////////////////////////////////////////////////////////////////// -#if defined(HPX_HAVE_STDEXEC) template void test_remove_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) { @@ -768,4 +767,3 @@ void test_remove_if_sender( HPX_TEST(equality); } -#endif diff --git a/libs/core/algorithms/tests/unit/algorithms/transform_binary2_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/transform_binary2_tests.hpp index 56ab761f3e52..1c42f700d757 100644 --- a/libs/core/algorithms/tests/unit/algorithms/transform_binary2_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/transform_binary2_tests.hpp @@ -352,7 +352,6 @@ void test_transform_binary2_bad_alloc_async(ExPolicy p, IteratorTag) //////////////////////////////////////////////////////////////////////////////// -#if defined(HPX_HAVE_STDEXEC) template void test_transform_binary2_sender( LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) @@ -401,4 +400,3 @@ void test_transform_binary2_sender( })); HPX_TEST_EQ(count, d2.size()); } -#endif diff --git a/libs/core/algorithms/tests/unit/algorithms/transform_binary_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/transform_binary_tests.hpp index 6911ace4a7ee..2b683566b650 100644 --- a/libs/core/algorithms/tests/unit/algorithms/transform_binary_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/transform_binary_tests.hpp @@ -341,7 +341,6 @@ void test_transform_binary_bad_alloc_async(ExPolicy p, IteratorTag) //////////////////////////////////////////////////////////////////////////////// -#if defined(HPX_HAVE_STDEXEC) template void test_transform_binary_sender( LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) @@ -388,4 +387,3 @@ void test_transform_binary_sender( })); HPX_TEST_EQ(count, d2.size()); } -#endif diff --git a/libs/core/algorithms/tests/unit/algorithms/transform_reduce_binary_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/transform_reduce_binary_tests.hpp index 78dbcf757a5c..71d37903c9b1 100644 --- a/libs/core/algorithms/tests/unit/algorithms/transform_reduce_binary_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/transform_reduce_binary_tests.hpp @@ -86,7 +86,6 @@ void test_transform_reduce_binary_async(ExPolicy&& p, IteratorTag) //////////////////////////////////////////////////////////////////////////////// -#if defined(HPX_HAVE_STDEXEC) template void test_transform_reduce_binary_sender( LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) @@ -134,4 +133,3 @@ void test_transform_reduce_binary_sender( std::begin(c), std::begin(c), std::begin(d), init)); } } -#endif diff --git a/libs/core/algorithms/tests/unit/algorithms/transform_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/transform_tests.hpp index d78c061dbadb..3c6e5fc62759 100644 --- a/libs/core/algorithms/tests/unit/algorithms/transform_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/transform_tests.hpp @@ -304,7 +304,6 @@ void test_transform_bad_alloc_async(ExPolicy p, IteratorTag) //////////////////////////////////////////////////////////////////////////////// -#if defined(HPX_HAVE_STDEXEC) template void test_transform_sender( LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) @@ -343,4 +342,3 @@ void test_transform_sender( })); HPX_TEST_EQ(count, d.size()); } -#endif diff --git a/libs/core/algorithms/tests/unit/algorithms/unique_tests.hpp b/libs/core/algorithms/tests/unit/algorithms/unique_tests.hpp index b8639a196093..ec40cfb342e8 100644 --- a/libs/core/algorithms/tests/unit/algorithms/unique_tests.hpp +++ b/libs/core/algorithms/tests/unit/algorithms/unique_tests.hpp @@ -506,7 +506,6 @@ void test_unique_bad_alloc() } //////////////////////////////////////////////////////////////////////////////// -#if defined(HPX_HAVE_STDEXEC) template void test_unique_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) { @@ -577,4 +576,3 @@ void test_unique_sender(LnPolicy ln_policy, ExPolicy&& ex_policy, IteratorTag) HPX_TEST(equality); } } -#endif diff --git a/libs/core/algorithms/tests/unit/container_algorithms/adjacentdifference_range_sender.cpp b/libs/core/algorithms/tests/unit/container_algorithms/adjacentdifference_range_sender.cpp index efddda7943f1..fdd7aa066737 100644 --- a/libs/core/algorithms/tests/unit/container_algorithms/adjacentdifference_range_sender.cpp +++ b/libs/core/algorithms/tests/unit/container_algorithms/adjacentdifference_range_sender.cpp @@ -87,14 +87,8 @@ void test_adjacent_difference_async_direct(Policy l, ExPolicy&& p) using scheduler_t = ex::thread_pool_policy_scheduler; auto exec = ex::explicit_scheduler_executor(scheduler_t(l)); -#if defined(HPX_HAVE_STDEXEC) auto result = tt::sync_wait( hpx::ranges::adjacent_difference(p.on(exec), c, std::begin(d))); -#else - auto result = - hpx::ranges::adjacent_difference(p.on(exec), c, std::begin(d)) | - tt::sync_wait(); -#endif std::adjacent_difference(std::begin(c), std::end(c), std::begin(d_ans)); diff --git a/libs/core/async_cuda/include/hpx/async_cuda/transform_stream.hpp b/libs/core/async_cuda/include/hpx/async_cuda/transform_stream.hpp index 4bf839756ecb..e8660e105e04 100644 --- a/libs/core/async_cuda/include/hpx/async_cuda/transform_stream.hpp +++ b/libs/core/async_cuda/include/hpx/async_cuda/transform_stream.hpp @@ -132,9 +132,7 @@ namespace hpx { namespace cuda { namespace experimental { template struct transform_stream_receiver { -#if defined(HPX_HAVE_STDEXEC) using receiver_concept = hpx::execution::experimental::receiver_t; -#endif std::decay_t r; std::decay_t f; cudaStream_t stream; @@ -255,7 +253,6 @@ namespace hpx { namespace cuda { namespace experimental { }); } -#if defined(HPX_HAVE_STDEXEC) template friend void tag_invoke(hpx::execution::experimental::set_value_t, transform_stream_receiver&& r, Ts&&... ts) noexcept @@ -266,22 +263,8 @@ namespace hpx { namespace cuda { namespace experimental { // error. r.set_value(HPX_FORWARD(Ts, ts)...); } -#endif }; -#if !defined(HPX_HAVE_STDEXEC) - // This should be a hidden friend in transform_stream_receiver. However, - // nvcc does not know how to compile it with some argument types - // ("error: no instance of overloaded function std::forward matches the - // argument list"). - template - void tag_invoke(hpx::execution::experimental::set_value_t, - transform_stream_receiver&& r, Ts&&... ts) - { - r.set_value(HPX_FORWARD(Ts, ts)...); - } -#endif - template struct transform_stream_sender { @@ -289,7 +272,6 @@ namespace hpx { namespace cuda { namespace experimental { std::decay_t f; cudaStream_t stream{}; -#if defined(HPX_HAVE_STDEXEC) using sender_concept = hpx::execution::experimental::sender_t; template @@ -345,52 +327,6 @@ namespace hpx { namespace cuda { namespace experimental { { return hpx::execution::experimental::get_env(s.s); } -#else - template - struct invoke_result_helper; - - template