Home
last modified time | relevance | path

Searched refs:is_odd (Results 1 – 25 of 45) sorted by relevance

12

/third_party/boost/libs/mpl/test/
Dpartition.cpp24 template< typename N > struct is_odd struct
27 BOOST_MPL_AUX_LAMBDA_SUPPORT(1, is_odd, (N))
35 , is_odd<_1> in MPL_TEST_CASE()
/third_party/boost/libs/hana/example/
Dall_of.cpp22 BOOST_HANA_CONSTEXPR_LAMBDA auto is_odd = [](auto x) { in __anon36c9b3d10102() variable
27 BOOST_HANA_CONSTEXPR_CHECK(hana::all_of(hana::make_tuple(1, 3), is_odd)); in main()
28 BOOST_HANA_CONSTANT_CHECK(!hana::all_of(hana::make_tuple(3_c, 4_c), is_odd)); in main()
Dany_of.cpp22 BOOST_HANA_CONSTEXPR_LAMBDA auto is_odd = [](auto x) { in __anon1f1a65400102() variable
27 BOOST_HANA_CONSTEXPR_CHECK(hana::any_of(hana::make_tuple(1, 2), is_odd)); in main()
28 BOOST_HANA_CONSTANT_CHECK(!hana::any_of(hana::make_tuple(2_c, 4_c), is_odd)); in main()
Dnone_of.cpp21 BOOST_HANA_CONSTEXPR_LAMBDA auto is_odd = [](auto x) { in __anon9d8babc80102() variable
26 BOOST_HANA_CONSTANT_CHECK(hana::none_of(hana::make_tuple(2_c, 4_c), is_odd)); in main()
27 BOOST_HANA_CONSTEXPR_CHECK(!hana::none_of(hana::make_tuple(1, 2), is_odd)); in main()
Dcount_if.cpp20 auto is_odd = [](auto x) { in __anon05d04c1b0102() variable
26 BOOST_HANA_CONSTANT_CHECK(hana::count_if(ints, is_odd) == hana::size_c<2>); in main()
/third_party/boost/libs/phoenix/doc/starter_kit/
Dfunction.qbk18 functions. The code below is a rewrite of the `is_odd` function using the
32 function<is_odd_impl> is_odd;
46 * `is_odd`, an instance of `function<is_odd_impl>`, is the lazy function.
48 Now, `is_odd` is a truly lazy function that we can use in conjunction with the
51 std::find_if(c.begin(), c.end(), is_odd(arg1));
/third_party/boost/libs/geometry/test/iterators/
Dtest_iterator_common.hpp66 struct is_odd struct
80 return !is_odd<T>()(t); in operator ()() argument
162 std::remove_if(first, beyond, is_odd<value_type>()); in test_using_remove_if()
168 BOOST_CHECK( !is_odd<value_type>()(*it) ); in test_using_remove_if()
177 is_odd<value_type>()), in test_using_remove_if()
/third_party/skia/tests/sksl/runtime_errors/
DIllegalRecursionMutual.skvm4 bool is_odd(int n)
6 bool is_odd(int n)
/third_party/skia/resources/sksl/runtime_errors/
DIllegalRecursionMutual.rts5 bool is_odd (int n) { return n == 0 ? false : is_even(n - 1); }
6 bool is_even(int n) { return n == 0 ? true : is_odd (n - 1); }
/third_party/boost/libs/spirit/classic/phoenix/example/fundamental/
Dsample3.cpp28 function<is_odd_> is_odd; variable
38 iterator it = find_if(c.begin(), c.end(), is_odd(arg1)); in main()
/third_party/boost/libs/phoenix/example/
Dfunction.cpp26 function<is_odd_> is_odd; variable
38 iterator it = std::find_if(c.begin(), c.end(), is_odd(arg1)); in main()
/third_party/boost/libs/range/test/adaptor_test/
Dfiltered.cpp48 struct is_odd struct
150 filtered_test_impl< Container, is_odd, is_odd >(); in filtered_test_all_predicates()
/third_party/boost/libs/compute/test/
Dtest_gather.cpp51 BOOST_COMPUTE_FUNCTION(bool, is_odd, (int x), in BOOST_AUTO_TEST_CASE()
59 input.begin(), input.end(), odds.begin(), is_odd, queue in BOOST_AUTO_TEST_CASE()
Dtest_unique.cpp89 BOOST_COMPUTE_FUNCTION(bool, is_odd, (uint_ x), in BOOST_AUTO_TEST_CASE()
93 BOOST_VERIFY(compute::none_of(vec.begin(), vec.end(), is_odd, queue)); in BOOST_AUTO_TEST_CASE()
Dtest_count.cpp196 BOOST_COMPUTE_FUNCTION(bool, is_odd, (int x), in BOOST_AUTO_TEST_CASE()
202 compute::count_if(vec.begin(), vec.end(), is_odd, queue), vec.size() / 2 in BOOST_AUTO_TEST_CASE()
/third_party/boost/libs/mp11/test/
Dmp_remove_if.cpp23 template<class N> using is_odd = mp_bool<N::value % 2 != 0>; typedef
61 using R1 = mp_remove_if<L1, is_odd>; in main()
/third_party/boost/libs/mpl/doc/src/refmanual/
Dinserter_.rst79 template< typename N > struct is_odd : bool_< ( N::value % 2 ) > {};
85 , if_< is_odd<_2>, push_back<_1,_2>, _1 >
Dreverse_partition.rst97 template< typename N > struct is_odd : bool_<(N::value % 2)> {};
101 , is_odd<_1>
Dpartition.rst97 template< typename N > struct is_odd : bool_<(N::value % 2)> {};
101 , is_odd<_1>
Dstable_partition.rst111 template< typename N > struct is_odd : bool_<(N::value % 2)> {};
115 , is_odd<_1>
Dreverse_stable_partition.rst111 template< typename N > struct is_odd : bool_<(N::value % 2)> {};
115 , is_odd<_1>
/third_party/boost/libs/compute/perf/
Dperf_copy_if.cpp35 BOOST_COMPUTE_FUNCTION(bool, is_odd, (int x), in test_copy_if_odd()
44 input.begin(), input.end(), output.begin(), is_odd, queue in test_copy_if_odd()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/
Deap_pwd_common.c140 u8 found_ctr = 0, is_odd = 0; in compute_password_element() local
197 is_odd = const_time_select_u8( in compute_password_element()
198 found, is_odd, pwe_digest[SHA256_MAC_LEN - 1] & 0x01); in compute_password_element()
284 is_eq = const_time_eq(is_odd, x_y[primebytelen - 1] & 0x01); in compute_password_element()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/
Deap_pwd_common.c140 u8 found_ctr = 0, is_odd = 0; in compute_password_element() local
197 is_odd = const_time_select_u8( in compute_password_element()
198 found, is_odd, pwe_digest[SHA256_MAC_LEN - 1] & 0x01); in compute_password_element()
284 is_eq = const_time_eq(is_odd, x_y[primebytelen - 1] & 0x01); in compute_password_element()
/third_party/boost/libs/phoenix/doc/advanced/
Dporting.qbk44 boost::phoenix::function<is_odd_impl> is_odd = is_odd_impl();
58 boost::phoenix::function<is_odd_impl> is_odd = is_odd_impl();

12