/dports/devel/boost-docs/boost_1_72_0/libs/hana/test/detail/ |
H A D | any_of.cpp | 12 struct is_even { struct 17 static_assert(!hana::detail::any_of<is_even>::value, ""); argument 18 static_assert(!hana::detail::any_of<is_even, hana::int_<1>>::value, ""); 19 static_assert(!hana::detail::any_of<is_even, hana::int_<1>, hana::int_<3>>::value, ""); 20 static_assert(!hana::detail::any_of<is_even, hana::int_<1>, hana::int_<3>, hana::int_<5>>::value, "… 23 static_assert(hana::detail::any_of<is_even, hana::int_<0>>::value, ""); 24 static_assert(hana::detail::any_of<is_even, hana::int_<0>, hana::int_<2>>::value, ""); 25 static_assert(hana::detail::any_of<is_even, hana::int_<0>, hana::int_<2>, hana::int_<4>>::value, ""… 28 static_assert(hana::detail::any_of<is_even, hana::int_<0>, hana::int_<1>>::value, ""); 29 static_assert(hana::detail::any_of<is_even, hana::int_<0>, hana::int_<1>, hana::int_<2>>::value, ""… [all …]
|
/dports/devel/boost-python-libs/boost_1_72_0/libs/hana/test/detail/ |
H A D | any_of.cpp | 12 struct is_even { struct 17 static_assert(!hana::detail::any_of<is_even>::value, ""); argument 18 static_assert(!hana::detail::any_of<is_even, hana::int_<1>>::value, ""); 19 static_assert(!hana::detail::any_of<is_even, hana::int_<1>, hana::int_<3>>::value, ""); 20 static_assert(!hana::detail::any_of<is_even, hana::int_<1>, hana::int_<3>, hana::int_<5>>::value, "… 23 static_assert(hana::detail::any_of<is_even, hana::int_<0>>::value, ""); 24 static_assert(hana::detail::any_of<is_even, hana::int_<0>, hana::int_<2>>::value, ""); 25 static_assert(hana::detail::any_of<is_even, hana::int_<0>, hana::int_<2>, hana::int_<4>>::value, ""… 28 static_assert(hana::detail::any_of<is_even, hana::int_<0>, hana::int_<1>>::value, ""); 29 static_assert(hana::detail::any_of<is_even, hana::int_<0>, hana::int_<1>, hana::int_<2>>::value, ""… [all …]
|
/dports/devel/boost-libs/boost_1_72_0/libs/hana/test/detail/ |
H A D | any_of.cpp | 12 struct is_even { struct 17 static_assert(!hana::detail::any_of<is_even>::value, ""); argument 18 static_assert(!hana::detail::any_of<is_even, hana::int_<1>>::value, ""); 19 static_assert(!hana::detail::any_of<is_even, hana::int_<1>, hana::int_<3>>::value, ""); 20 static_assert(!hana::detail::any_of<is_even, hana::int_<1>, hana::int_<3>, hana::int_<5>>::value, "… 23 static_assert(hana::detail::any_of<is_even, hana::int_<0>>::value, ""); 24 static_assert(hana::detail::any_of<is_even, hana::int_<0>, hana::int_<2>>::value, ""); 25 static_assert(hana::detail::any_of<is_even, hana::int_<0>, hana::int_<2>, hana::int_<4>>::value, ""… 28 static_assert(hana::detail::any_of<is_even, hana::int_<0>, hana::int_<1>>::value, ""); 29 static_assert(hana::detail::any_of<is_even, hana::int_<0>, hana::int_<1>, hana::int_<2>>::value, ""… [all …]
|
/dports/devel/hyperscan/boost_1_75_0/libs/hana/test/detail/ |
H A D | any_of.cpp | 12 struct is_even { struct 17 static_assert(!hana::detail::any_of<is_even>::value, ""); argument 18 static_assert(!hana::detail::any_of<is_even, hana::int_<1>>::value, ""); 19 static_assert(!hana::detail::any_of<is_even, hana::int_<1>, hana::int_<3>>::value, ""); 20 static_assert(!hana::detail::any_of<is_even, hana::int_<1>, hana::int_<3>, hana::int_<5>>::value, "… 23 static_assert(hana::detail::any_of<is_even, hana::int_<0>>::value, ""); 24 static_assert(hana::detail::any_of<is_even, hana::int_<0>, hana::int_<2>>::value, ""); 25 static_assert(hana::detail::any_of<is_even, hana::int_<0>, hana::int_<2>, hana::int_<4>>::value, ""… 28 static_assert(hana::detail::any_of<is_even, hana::int_<0>, hana::int_<1>>::value, ""); 29 static_assert(hana::detail::any_of<is_even, hana::int_<0>, hana::int_<1>, hana::int_<2>>::value, ""… [all …]
|
/dports/devel/p5-Data-Validate/Data-Validate-0.09/t/ |
H A D | is_even.t | 21 $t->ok(defined(is_even(0)), "0 is even"); 22 $t->ok(defined(is_even(2)), "2 is even"); 23 $t->ok(!defined(is_even(1)), "1 is odd"); 24 $t->ok(!defined(is_even(5)), "5 is odd"); 27 $t->ok(!defined(is_even(0.1)), "0.1 is not an integer"); 28 $t->ok(!defined(is_even('foo')), "'foo' is not an integer"); 32 $t->ok(defined($v->is_even(0)), "0 is even (object)"); 33 $t->ok(!defined($v->is_even(1)), "1 is odd (object)");
|
/dports/lang/rust/rustc-1.58.1-src/src/test/ui/for-loop-while/ |
H A D | loop-break-cont.rs | 12 let mut is_even = false; in main() localVariable 18 is_even = false; in main() 23 is_even = true; in main() 25 assert!(!is_even); in main() 31 is_even = false; in main() 36 is_even = true; in main() 38 assert!(is_even); in main()
|
/dports/databases/percona57-pam-for-mysql/boost_1_59_0/libs/algorithm/test/ |
H A D | copy_if_test1.cpp | 30 bool is_even ( int v ) { return v % 2 == 0; } in is_even() function 64 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_if() 67 ba::copy_if ( c, back_inserter ( v ), is_even ); in test_copy_if() 69 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_if() 104 BOOST_CHECK ( it == c.end () || !is_even ( *it )); in test_copy_while() 105 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_while() 111 BOOST_CHECK ( it == c.end () || !is_even ( *it )); in test_copy_while() 112 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_while() 147 BOOST_CHECK ( it == c.end () || is_even ( *it )); in test_copy_until() 148 BOOST_CHECK ( ba::none_of ( v.begin (), v.end (), is_even )); in test_copy_until() [all …]
|
/dports/databases/percona57-server/boost_1_59_0/libs/algorithm/test/ |
H A D | copy_if_test1.cpp | 30 bool is_even ( int v ) { return v % 2 == 0; } in is_even() function 64 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_if() 67 ba::copy_if ( c, back_inserter ( v ), is_even ); in test_copy_if() 69 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_if() 104 BOOST_CHECK ( it == c.end () || !is_even ( *it )); in test_copy_while() 105 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_while() 111 BOOST_CHECK ( it == c.end () || !is_even ( *it )); in test_copy_while() 112 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_while() 147 BOOST_CHECK ( it == c.end () || is_even ( *it )); in test_copy_until() 148 BOOST_CHECK ( ba::none_of ( v.begin (), v.end (), is_even )); in test_copy_until() [all …]
|
/dports/databases/xtrabackup/boost_1_59_0/libs/algorithm/test/ |
H A D | copy_if_test1.cpp | 30 bool is_even ( int v ) { return v % 2 == 0; } in is_even() function 64 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_if() 67 ba::copy_if ( c, back_inserter ( v ), is_even ); in test_copy_if() 69 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_if() 104 BOOST_CHECK ( it == c.end () || !is_even ( *it )); in test_copy_while() 105 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_while() 111 BOOST_CHECK ( it == c.end () || !is_even ( *it )); in test_copy_while() 112 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_while() 147 BOOST_CHECK ( it == c.end () || is_even ( *it )); in test_copy_until() 148 BOOST_CHECK ( ba::none_of ( v.begin (), v.end (), is_even )); in test_copy_until() [all …]
|
/dports/databases/percona57-client/boost_1_59_0/libs/algorithm/test/ |
H A D | copy_if_test1.cpp | 30 bool is_even ( int v ) { return v % 2 == 0; } in is_even() function 64 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_if() 67 ba::copy_if ( c, back_inserter ( v ), is_even ); in test_copy_if() 69 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_if() 104 BOOST_CHECK ( it == c.end () || !is_even ( *it )); in test_copy_while() 105 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_while() 111 BOOST_CHECK ( it == c.end () || !is_even ( *it )); in test_copy_while() 112 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_while() 147 BOOST_CHECK ( it == c.end () || is_even ( *it )); in test_copy_until() 148 BOOST_CHECK ( ba::none_of ( v.begin (), v.end (), is_even )); in test_copy_until() [all …]
|
/dports/databases/mysqlwsrep57-server/boost_1_59_0/libs/algorithm/test/ |
H A D | copy_if_test1.cpp | 30 bool is_even ( int v ) { return v % 2 == 0; } in is_even() function 64 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_if() 67 ba::copy_if ( c, back_inserter ( v ), is_even ); in test_copy_if() 69 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_if() 104 BOOST_CHECK ( it == c.end () || !is_even ( *it )); in test_copy_while() 105 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_while() 111 BOOST_CHECK ( it == c.end () || !is_even ( *it )); in test_copy_while() 112 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_while() 147 BOOST_CHECK ( it == c.end () || is_even ( *it )); in test_copy_until() 148 BOOST_CHECK ( ba::none_of ( v.begin (), v.end (), is_even )); in test_copy_until() [all …]
|
/dports/devel/functionalplus/FunctionalPlus-0.2.18-p0/test/ |
H A D | search_test.cpp | 13 bool is_even(int value) in is_even() function 22 auto result = fplus::find_first_by(is_even, v); 29 auto result = fplus::find_first_by(is_even, v); 36 auto result = fplus::find_last_by(is_even, v); 43 auto result = fplus::find_first_by(is_even, v); 50 auto result = fplus::find_first_idx_by(is_even, v); 57 auto result = fplus::find_first_idx_by(is_even, v); 64 auto result = fplus::find_last_idx_by(is_even, v); 71 auto result = fplus::find_last_idx_by(is_even, v); 106 auto result = fplus::find_all_idxs_by(is_even, v); [all …]
|
/dports/devel/boost-docs/boost_1_72_0/libs/algorithm/test/ |
H A D | copy_if_test1.cpp | 33 BOOST_CXX14_CONSTEXPR bool is_even ( int v ) { return v % 2 == 0; } in is_even() function 69 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_if() 72 ba::copy_if ( c, back_inserter ( v ), is_even ); in test_copy_if() 74 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_if() 109 BOOST_CHECK ( it == c.end () || !is_even ( *it )); in test_copy_while() 110 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_while() 116 BOOST_CHECK ( it == c.end () || !is_even ( *it )); in test_copy_while() 117 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_while() 152 BOOST_CHECK ( it == c.end () || is_even ( *it )); in test_copy_until() 153 BOOST_CHECK ( ba::none_of ( v.begin (), v.end (), is_even )); in test_copy_until() [all …]
|
/dports/devel/boost-python-libs/boost_1_72_0/libs/algorithm/test/ |
H A D | copy_if_test1.cpp | 33 BOOST_CXX14_CONSTEXPR bool is_even ( int v ) { return v % 2 == 0; } in is_even() function 69 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_if() 72 ba::copy_if ( c, back_inserter ( v ), is_even ); in test_copy_if() 74 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_if() 109 BOOST_CHECK ( it == c.end () || !is_even ( *it )); in test_copy_while() 110 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_while() 116 BOOST_CHECK ( it == c.end () || !is_even ( *it )); in test_copy_while() 117 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_while() 152 BOOST_CHECK ( it == c.end () || is_even ( *it )); in test_copy_until() 153 BOOST_CHECK ( ba::none_of ( v.begin (), v.end (), is_even )); in test_copy_until() [all …]
|
/dports/devel/boost-libs/boost_1_72_0/libs/algorithm/test/ |
H A D | copy_if_test1.cpp | 33 BOOST_CXX14_CONSTEXPR bool is_even ( int v ) { return v % 2 == 0; } in is_even() function 69 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_if() 72 ba::copy_if ( c, back_inserter ( v ), is_even ); in test_copy_if() 74 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_if() 109 BOOST_CHECK ( it == c.end () || !is_even ( *it )); in test_copy_while() 110 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_while() 116 BOOST_CHECK ( it == c.end () || !is_even ( *it )); in test_copy_while() 117 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_while() 152 BOOST_CHECK ( it == c.end () || is_even ( *it )); in test_copy_until() 153 BOOST_CHECK ( ba::none_of ( v.begin (), v.end (), is_even )); in test_copy_until() [all …]
|
/dports/devel/hyperscan/boost_1_75_0/libs/algorithm/test/ |
H A D | copy_if_test1.cpp | 33 BOOST_CXX14_CONSTEXPR bool is_even ( int v ) { return v % 2 == 0; } in is_even() function 69 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_if() 72 ba::copy_if ( c, back_inserter ( v ), is_even ); in test_copy_if() 74 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_if() 109 BOOST_CHECK ( it == c.end () || !is_even ( *it )); in test_copy_while() 110 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_while() 116 BOOST_CHECK ( it == c.end () || !is_even ( *it )); in test_copy_while() 117 BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even )); in test_copy_while() 152 BOOST_CHECK ( it == c.end () || is_even ( *it )); in test_copy_until() 153 BOOST_CHECK ( ba::none_of ( v.begin (), v.end (), is_even )); in test_copy_until() [all …]
|
/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/ThirdParty/range-v3/test/view/ |
H A D | remove_if.cpp | 37 struct is_even struct 62 auto rng = rgi | views::remove_if(is_even()); in main() argument 89 … auto rng3 = views::counted(BidirectionalIterator<int*>{rgi}, 10) | views::remove_if(is_even()); in main() 121 auto rng = debug_input_view<int const>{rgi} | views::remove_if(is_even{}); in main() 138 auto rng = ranges::views::remove_if(some_my_datas, is_even(), &my_data::i); in main() 144 auto rng = some_my_datas | ranges::views::remove_if(is_even(), &my_data::i); in main() 150 auto rng = ranges::views::filter(some_my_datas, is_even(), &my_data::i); in main() 156 auto rng = some_my_datas | ranges::views::filter(is_even(), &my_data::i); in main() 165 constexpr auto filter = views::remove_if(is_even()) | views::remove_if(is_odd()); in main() 171 …constexpr auto filter = views::remove_if(is_even(), &my_data::i) | views::remove_if(is_odd(), &my_… in main()
|
/dports/devel/range-v3/range-v3-0.11.0/test/view/ |
H A D | remove_if.cpp | 37 struct is_even struct 62 auto rng = rgi | views::remove_if(is_even()); in main() argument 89 … auto rng3 = views::counted(BidirectionalIterator<int*>{rgi}, 10) | views::remove_if(is_even()); in main() 121 auto rng = debug_input_view<int const>{rgi} | views::remove_if(is_even{}); in main() 138 auto rng = ranges::views::remove_if(some_my_datas, is_even(), &my_data::i); in main() 144 auto rng = some_my_datas | ranges::views::remove_if(is_even(), &my_data::i); in main() 150 auto rng = ranges::views::filter(some_my_datas, is_even(), &my_data::i); in main() 156 auto rng = some_my_datas | ranges::views::filter(is_even(), &my_data::i); in main() 165 constexpr auto filter = views::remove_if(is_even()) | views::remove_if(is_odd()); in main() 171 …constexpr auto filter = views::remove_if(is_even(), &my_data::i) | views::remove_if(is_odd(), &my_… in main()
|
/dports/lang/cython-devel/cython-2b1e743/tests/run/ |
H A D | cpp_stl_algo_partitioning_ops.pyx | 13 cdef bool is_even(int i): function 25 print(is_partitioned(values.begin(), values.end(), is_even)) 27 partition(values.begin(), values.end(), &is_even) 28 print(is_partitioned(values.begin(), values.end(), is_even)) 31 print(is_partitioned(values.begin(), values.end(), is_even)) 45 it = partition(values.begin(), values.end(), &is_even) 60 …copy(values.begin(), values.end(), back_inserter(even_values), back_inserter(odd_values), &is_even) 86 it = partition_point(values.begin(), values.end(), is_even)
|
/dports/www/ot-recorder/recorder-0.8.4/ |
H A D | geohash.c | 146 int is_even = 1; in geohash_encode() local 151 if(is_even) { in geohash_encode() 180 is_even = !is_even; in geohash_encode() 204 int is_even = 1; in geohash_decode() local 217 interval = is_even ? &lng_interval : &lat_interval; in geohash_decode() 226 is_even = !is_even; in geohash_decode()
|
/dports/devel/thrust/thrust-1.9.5/testing/ |
H A D | partition.cu | 10 struct is_even struct 491 is_even<T>()); in operator ()() 498 is_even<T>()); in operator ()() 517 is_even<T>()); in operator ()() 524 is_even<T>()); in operator ()() 550 is_even<T>()); in operator ()() 557 is_even<T>()); in operator ()() 597 is_even<T>()); in operator ()() 605 is_even<T>()); in operator ()() 625 is_even<T>()); in operator ()() [all …]
|
/dports/math/yacas/yacas-1.9.1/cyacas/libyacas_mp/test/src/ |
H A D | zz_test.cpp | 65 ASSERT_TRUE(ZZ(0).is_even()); in TEST() 66 ASSERT_FALSE(ZZ(1).is_even()); in TEST() 67 ASSERT_FALSE(ZZ(-1).is_even()); in TEST() 68 ASSERT_TRUE(ZZ(2).is_even()); in TEST() 69 ASSERT_TRUE(ZZ(-2).is_even()); in TEST() 70 ASSERT_FALSE(ZZ(3).is_even()); in TEST() 71 ASSERT_FALSE(ZZ(-3).is_even()); in TEST() 72 ASSERT_TRUE(ZZ("167170571948282915479450721253708836308").is_even()); in TEST() 73 ASSERT_TRUE(ZZ("-167170571948282915479450721253708836308").is_even()); in TEST() 74 ASSERT_FALSE(ZZ("167170571948282915479450721253708836309").is_even()); in TEST() [all …]
|
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/libcxx/test/libcxx/fuzzing/ |
H A D | partition.pass.cpp | 19 auto is_even = [](auto x) { return x % 2 == 0; }; in LLVMFuzzerTestOneInput() local 21 auto iter = std::partition(working.begin(), working.end(), is_even); in LLVMFuzzerTestOneInput() 23 if (!std::all_of(working.begin(), iter, is_even)) in LLVMFuzzerTestOneInput() 25 if (!std::none_of(iter, working.end(), is_even)) in LLVMFuzzerTestOneInput()
|
/dports/devel/llvm12/llvm-project-12.0.1.src/libcxx/test/libcxx/fuzzing/ |
H A D | partition.pass.cpp | 19 auto is_even = [](auto x) { return x % 2 == 0; }; in LLVMFuzzerTestOneInput() local 21 auto iter = std::partition(working.begin(), working.end(), is_even); in LLVMFuzzerTestOneInput() 23 if (!std::all_of(working.begin(), iter, is_even)) in LLVMFuzzerTestOneInput() 25 if (!std::none_of(iter, working.end(), is_even)) in LLVMFuzzerTestOneInput()
|
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/libcxx/test/libcxx/fuzzing/ |
H A D | partition.pass.cpp | 19 auto is_even = [](auto x) { return x % 2 == 0; }; in LLVMFuzzerTestOneInput() local 21 auto iter = std::partition(working.begin(), working.end(), is_even); in LLVMFuzzerTestOneInput() 23 if (!std::all_of(working.begin(), iter, is_even)) in LLVMFuzzerTestOneInput() 25 if (!std::none_of(iter, working.end(), is_even)) in LLVMFuzzerTestOneInput()
|