Home
last modified time | relevance | path

Searched refs:find_if (Results 1 – 25 of 525) sorted by relevance

12345678910>>...21

/third_party/boost/libs/hana/test/ext/std/integer_sequence/
Dfind_if.cpp23 hana::find_if(std::index_sequence<>{}, in main()
29 hana::find_if(std::index_sequence<0>{}, in main()
34 hana::find_if(std::index_sequence<0>{}, in main()
40 hana::find_if(std::index_sequence<0, 1>{}, in main()
45 hana::find_if(std::index_sequence<0, 1>{}, in main()
50 hana::find_if(std::index_sequence<0, 1>{}, in main()
56 hana::find_if(std::index_sequence<0, 1, 2>{}, in main()
61 hana::find_if(std::index_sequence<0, 1, 2>{}, in main()
66 hana::find_if(std::index_sequence<0, 1, 2>{}, in main()
71 hana::find_if(std::index_sequence<0, 1, 2>{}, in main()
[all …]
/third_party/boost/boost/range/algorithm/
Dfind_if.hpp35 find_if( SinglePassRange& rng, UnaryPredicate pred ) in find_if() function
38 return std::find_if(boost::begin(rng), boost::end(rng), pred); in find_if()
44 find_if( const SinglePassRange& rng, UnaryPredicate pred ) in find_if() function
47 return std::find_if(boost::begin(rng), boost::end(rng), pred); in find_if()
58 find_if( SinglePassRange& rng, UnaryPredicate pred ) in find_if() function
62 pack(std::find_if(boost::begin(rng), boost::end(rng), pred), in find_if()
69 find_if( const SinglePassRange& rng, UnaryPredicate pred ) in find_if() function
73 pack(std::find_if(boost::begin(rng), boost::end(rng), pred), in find_if()
78 using range::find_if;
/third_party/boost/libs/fusion/test/algorithm/
Dfind_if.cpp37 std::cout << *find_if<is_same<_, char> >(v) << std::endl; in main()
38 BOOST_TEST((*find_if<is_same<_, char> >(v) == 'x')); in main()
40 std::cout << *find_if<is_same<_, int> >(v) << std::endl; in main()
41 BOOST_TEST((*find_if<is_same<_, int> >(v) == 12345)); in main()
43 std::cout << *find_if<is_same<_, double> >(v) << std::endl; in main()
44 BOOST_TEST((*find_if<is_same<_, double> >(v) == 3.36)); in main()
53 BOOST_TEST((*find_if<is_same<_, X> >(mpl_vec()) == 12345)); in main()
64 BOOST_TEST((*find_if<less<_, int_<3> > >(mpl_vec()) == 1)); in main()
Dsegmented_find_if.cpp25 …typedef typename boost::fusion::result_of::find_if<Tree const, is_same<_,short> >::type short_iter; in process_tree()
26 …typedef typename boost::fusion::result_of::find_if<Tree const, is_same<_,float> >::type float_iter; in process_tree()
27 …typedef typename boost::fusion::result_of::find_if<Tree const, is_same<_,not_there> >::type not_th… in process_tree()
31 short_iter si = fusion::find_if<is_same<_,short> >(tree); in process_tree()
32 float_iter fi = fusion::find_if<is_same<_,float> >(tree); in process_tree()
39 not_there_iter nti = fusion::find_if<is_same<_,not_there> >(tree); in process_tree()
/third_party/boost/boost/fusion/algorithm/query/
Dfind_if.hpp29 struct find_if struct
49 , result_of::find_if<Sequence, Pred>
51 find_if(Sequence& seq) in find_if() function
53 typedef typename result_of::find_if<Sequence, Pred>::filter filter; in find_if()
59 inline typename result_of::find_if<Sequence const, Pred>::type const
60 find_if(Sequence const& seq) in find_if() function
62 typedef typename result_of::find_if<Sequence const, Pred>::filter filter; in find_if()
Dfind_if_fwd.hpp20 struct find_if;
28 , result_of::find_if<Sequence, Pred>
30 find_if(Sequence& seq);
34 inline typename result_of::find_if<Sequence const, Pred>::type const
35 find_if(Sequence const& seq);
/third_party/boost/libs/hana/test/concept/struct/
Dfind_if.cpp23 hana::find_if(obj(), undefined<>{}), in main()
28 hana::find_if(obj(ct_eq<0>{}), hana::equal.to(hana::int_c<0>)), in main()
32 hana::find_if(obj(undefined<1>{}), hana::equal.to(hana::int_c<1>)), in main()
37 hana::find_if(obj(ct_eq<0>{}, ct_eq<1>{}), hana::equal.to(hana::int_c<0>)), in main()
41 hana::find_if(obj(ct_eq<0>{}, ct_eq<1>{}), hana::equal.to(hana::int_c<1>)), in main()
45 hana::find_if(obj(undefined<0>{}, undefined<1>{}), hana::equal.to(hana::int_c<2>)), in main()
/third_party/boost/libs/hana/test/set/
Dfind_if.cpp19 hana::find_if(hana::make_set(), hana::equal.to(ct_eq<1>{})), in main()
24 hana::find_if(hana::make_set(ct_eq<1>{}), hana::equal.to(ct_eq<1>{})), in main()
28 hana::find_if(hana::make_set(ct_eq<1>{}), hana::equal.to(ct_eq<2>{})), in main()
33 hana::find_if(hana::make_set(ct_eq<1>{}, ct_eq<2>{}), hana::equal.to(ct_eq<1>{})), in main()
37 hana::find_if(hana::make_set(ct_eq<1>{}, ct_eq<2>{}), hana::equal.to(ct_eq<2>{})), in main()
41 hana::find_if(hana::make_set(ct_eq<1>{}, ct_eq<2>{}), hana::equal.to(ct_eq<3>{})), in main()
/third_party/boost/libs/range/doc/reference/algorithm/
Dfind_if.qbk6 [section:find_if find_if]
13 find_if(SinglePassRange& rng, UnaryPredicate pred);
21 find_if(SinglePassRange& rng, UnaryPredicate pred);
26 The versions of `find_if` that return an iterator, returns the first iterator in the range `rng` su…
28 The versions of `find_if` that return a `range_return`, defines found in the same manner as the ret…
32 Defined in the header file `boost/range/algorithm/find_if.hpp`
/third_party/boost/libs/hana/test/map/
Dfind_if.cpp27 hana::find_if(hana::make_map(), hana::equal.to(key<1>())), in main()
32 hana::find_if(hana::make_map(p<1, 1>()), hana::equal.to(key<1>())), in main()
36 hana::find_if(hana::make_map(p<1, 1>()), hana::equal.to(key<2>())), in main()
41 hana::find_if(hana::make_map(p<1, 1>(), p<2, 2>()), hana::equal.to(key<1>())), in main()
45 hana::find_if(hana::make_map(p<1, 1>(), p<2, 2>()), hana::equal.to(key<2>())), in main()
49 hana::find_if(hana::make_map(p<1, 1>(), p<2, 2>()), hana::equal.to(key<3>())), in main()
/third_party/mindspore/mindspore/lite/src/
Dinner_context.cc81 std::find_if(this->device_list_.begin(), this->device_list_.end(), in SetContextDevice()
84 std::find_if(this->device_list_.begin(), this->device_list_.end(), in SetContextDevice()
87 std::find_if(this->device_list_.begin(), this->device_list_.end(), in SetContextDevice()
268 …(void)std::find_if(this->device_list_.begin(), this->device_list_.end(), [&](const DeviceContext &… in GetCpuDeviceInfo()
305 std::find_if(this->device_list_.begin(), this->device_list_.end(), in IsProviderEnabled()
317 …std::find_if(this->device_list_.begin(), this->device_list_.end(), [](const DeviceContext &device)… in IsCpuBindModeInvalid()
325 std::find_if(this->device_list_.begin(), this->device_list_.end(), in IsUserSetCpu()
331 std::find_if(this->device_list_.begin(), this->device_list_.end(), in IsUserSetGpu()
337 std::find_if(this->device_list_.begin(), this->device_list_.end(), in IsUserSetNpu()
343 std::find_if(this->device_list_.begin(), this->device_list_.end(), in IsUserSetNNRt()
[all …]
/third_party/boost/boost/mpl/
Dfind_if.hpp26 BOOST_MPL_AUX_COMMON_NAME_WKND(find_if)
32 struct find_if struct
43 BOOST_MPL_AUX_LAMBDA_SUPPORT(2,find_if,(Sequence,Predicate))
46 BOOST_MPL_AUX_NA_SPEC(2,find_if)
/third_party/boost/libs/mpl/doc/src/refmanual/
Dfind_if.rst1 .. Algorithms/Querying Algorithms//find_if |20
3 find_if title
15 struct find_if
34 #include <boost/mpl/find_if.hpp>
58 typedef find_if<s,pred>::type i;
85 typedef find_if<types, is_same<_1,unsigned> >::type iter;
/third_party/boost/libs/hana/test/string/
Dfind_if.cpp18 hana::find_if(BOOST_HANA_STRING(""), hana::always(hana::true_c)), in main()
23 hana::find_if(BOOST_HANA_STRING("abcd"), hana::equal.to(hana::char_c<'a'>)), in main()
28 hana::find_if(BOOST_HANA_STRING("abcd"), hana::equal.to(hana::char_c<'c'>)), in main()
33 hana::find_if(BOOST_HANA_STRING("abcd"), hana::equal.to(hana::char_c<'d'>)), in main()
/third_party/boost/libs/hana/test/_include/laws/
Dsearchable.hpp105 hana::find_if(xs, hana::always(hana::false_c)), in TestSearchable()
127 hana::find_if(xs, hana::equal.to(key)) in TestSearchable()
318 find_if(list(), equal.to(x<9>{})),
323 find_if(list(x<0>{}), equal.to(x<9>{})),
327 find_if(list(x<0>{}), equal.to(x<0>{})),
331 find_if(list(x<0>{}, invalid<1>{}), equal.to(x<0>{})),
335 find_if(list(x<0>{}, invalid<1>{}, invalid<2>{}), equal.to(x<0>{})),
340 find_if(list(x<0>{}, x<1>{}), equal.to(x<9>{})),
344 find_if(list(x<0>{}, x<1>{}), equal.to(x<1>{})),
348 find_if(list(x<0>{}, x<1>{}, invalid<2>{}), equal.to(x<1>{})),
[all …]
/third_party/boost/libs/hana/example/tutorial/
Drationale.container.cpp24 auto result = hana::find_if(tuple, [](auto const& x) { in main()
32 some_type result = hana::find_if(tuple, [](auto const& x) { in main()
45 using Result = fusion::result_of::find_if<Container, Predicate>::type; in main()
46 Result result = fusion::find_if<Predicate>(tuple); in main()
/third_party/boost/libs/hana/test/optional/
Dfind_if.cpp20 hana::find_if(hana::just(x), hana::equal.to(x)), in main()
24 hana::find_if(hana::just(x), hana::equal.to(y)), in main()
28 hana::find_if(hana::nothing, hana::equal.to(x)), in main()
35 hana::find_if(non_const_nothing, hana::equal.to(x)), in main()
/third_party/boost/libs/hana/example/
Dfind_if.cpp24 hana::find_if(hana::make_tuple(1.0, 2, '3'), is_integral) == hana::just(2)
28 hana::find_if(hana::make_tuple(1.0, 2, '3'), is_class) == hana::nothing
33 … hana::find_if(types, hana::equal.to(hana::type_c<unsigned>)) == hana::just(hana::type_c<unsigned>)
36 hana::find_if(types, hana::equal.to(hana::type_c<void>)) == hana::nothing
/third_party/boost/libs/range/test/algorithm_test/
Dfind_if.cpp40 iter_t result = boost::find_if(cont, m_pred); in test_iter()
41 BOOST_CHECK( result == boost::find_if(boost::make_iterator_range(cont), m_pred) ); in test_iter()
53 result_t result = boost::find_if<return_type>(cont, policy.pred()); in operator ()()
54 …BOOST_CHECK( result == boost::find_if<return_type>(boost::make_iterator_range(cont), policy.pred()… in operator ()()
63 return std::find_if(cont.begin(), cont.end(), m_pred); in reference()
/third_party/mindspore/third_party/patch/cppjieba/
Dcppjieba.patch0018 - s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<unsigned, bool>(IsSpa…
9 + s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::function<unsigned(bool)>(IsSp…
14 - s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::ptr_fun<unsigned, bool>(IsSpace))).bas…
15 + s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::function<unsigned(bool)>(IsSpace))).ba…
23 - s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::bind2nd(std::equal_to<char>()…
24 + s.erase(s.begin(), std::find_if(s.begin(), s.end(), [x](char c) -> bool { return c != x; }));
29 - s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::bind2nd(std::equal_to<char>(), x))).ba…
30 + s.erase(std::find_if(s.rbegin(), s.rend(), [x](char c) -> bool { return c != x; } ).base(), s.en…
/third_party/boost/libs/hana/example/optional/
Dsearchable.cpp20 BOOST_HANA_CONSTANT_CHECK(hana::find_if(hana::just(hana::int_c<3>), odd) == hana::just(hana::int_c<…
21 BOOST_HANA_CONSTANT_CHECK(hana::find_if(hana::just(hana::int_c<2>), odd) == hana::nothing);
22 BOOST_HANA_CONSTANT_CHECK(hana::find_if(hana::nothing, odd) == hana::nothing);
/third_party/boost/libs/mpl/test/
Dfind_if.cpp29 typedef find_if< types, boost::is_float<_> >::type iter; in MPL_TEST_CASE()
36 typedef find_if< types, boost::is_same<_,long> >::type iter; in MPL_TEST_CASE()
43 typedef find_if< types, boost::is_same<_,void> >::type iter; in MPL_TEST_CASE()
/third_party/boost/libs/fusion/test/sequence/
Dsegmented_iterator_range.cpp46 …typedef typename boost::fusion::result_of::find_if<Tree const, is_same<_,short> >::type short_iter; in process_tree()
47 …typedef typename boost::fusion::result_of::find_if<Tree const, is_same<_,float> >::type float_iter; in process_tree()
54 short_iter si = find_if<is_same<_,short> >(tree); in process_tree()
55 float_iter fi = find_if<is_same<_,float> >(tree); in process_tree()
/third_party/boost/libs/phoenix/doc/starter_kit/
Doperator.qbk55 object) or a function pointer and pass that in to STL's `find_if` generic
66 Pass a pointer to the function to STL's `find_if` algorithm:
68 std::find_if(c.begin(), c.end(), &is_odd)
72 std::find_if(c.begin(), c.end(), arg1 % 2 == 1)
81 (See [@../../example/find_if.cpp find_if.cpp])
/third_party/boost/boost/hana/fwd/
Dfind_if.hpp41 constexpr auto find_if = [](auto&& xs, auto&& predicate) { in __anon08cf26cc0102() variable
53 constexpr find_if_t find_if{};

12345678910>>...21