void adjacent_find_tests(std::vector<hpx::id_type>& localities) { hpx::partitioned_vector<T> xvalues( SIZE, T(0), hpx::container_layout(localities)); initialize(xvalues); test_adjacent_find(hpx::parallel::execution::seq, xvalues); test_adjacent_find(hpx::parallel::execution::par, xvalues); test_adjacent_find_async( hpx::parallel::execution::seq(hpx::parallel::execution::task), xvalues); test_adjacent_find_async( hpx::parallel::execution::par(hpx::parallel::execution::task), xvalues); }
static int run_test (int, char*[]) { test_adjacent_find (0); if (rw_opt_no_predicate) { rw_note (0, __FILE__, __LINE__, "Predicate test disabled"); } else { test_adjacent_find ("EqualityPredicate<UserClass, UserClass>"); } return 0; }
static int run_test (int, char*[]) { test_adjacent_find (0); if (rw_opt_no_predicate) { rw_note (0, __FILE__, __LINE__, "Predicate test disabled"); } else { test_adjacent_find ("std::equal_to<X>"); } return 0; }