Home
last modified time | relevance | path

Searched refs:invoke (Results 1 – 25 of 1088) sorted by relevance

12345678910>>...44

/third_party/abseil-cpp/absl/base/
Dinvoke_test.cc92 decltype(base_internal::invoke(std::declval<const F&>())) CallMaybeWithArg( in invoke() function in absl::base_internal::__anon66b009cb0111::base_internal
94 return base_internal::invoke(f); in invoke()
98 decltype(base_internal::invoke(std::declval<const F&>(), 42)) CallMaybeWithArg( in CallMaybeWithArg()
100 return base_internal::invoke(f, 42); in CallMaybeWithArg()
104 EXPECT_EQ(1, base_internal::invoke(Function, 3, 2)); in TEST()
105 EXPECT_EQ(1, base_internal::invoke(&Function, 3, 2)); in TEST()
109 EXPECT_EQ(42, base_internal::invoke(Sink, make_unique<int>(42))); in TEST()
113 EXPECT_THAT(base_internal::invoke(Factory, 42), ::testing::Pointee(42)); in TEST()
116 TEST(InvokeTest, VoidResult) { base_internal::invoke(NoOp); } in TEST()
119 EXPECT_EQ(1, base_internal::invoke(ConstFunctor(), 3, 2)); in TEST()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/base/
Dinvoke_test.cc92 decltype(base_internal::invoke(std::declval<const F&>())) CallMaybeWithArg( in invoke() function in absl::base_internal::__anon7634ba400111::base_internal
94 return base_internal::invoke(f); in invoke()
98 decltype(base_internal::invoke(std::declval<const F&>(), 42)) CallMaybeWithArg( in CallMaybeWithArg()
100 return base_internal::invoke(f, 42); in CallMaybeWithArg()
104 EXPECT_EQ(1, base_internal::invoke(Function, 3, 2)); in TEST()
105 EXPECT_EQ(1, base_internal::invoke(&Function, 3, 2)); in TEST()
109 EXPECT_EQ(42, base_internal::invoke(Sink, make_unique<int>(42))); in TEST()
113 EXPECT_THAT(base_internal::invoke(Factory, 42), ::testing::Pointee(42)); in TEST()
116 TEST(InvokeTest, VoidResult) { base_internal::invoke(NoOp); } in TEST()
119 EXPECT_EQ(1, base_internal::invoke(ConstFunctor(), 3, 2)); in TEST()
[all …]
/third_party/boost/libs/fusion/test/functional/
Dinvoke.cpp85 SFINAE_FRIENDLY_ASSERT((fusion::result_of::invoke<fobj, sfinae_friendly::v0>));
86 SFINAE_FRIENDLY_ASSERT((fusion::result_of::invoke<fobj, sfinae_friendly::v1>));
87 SFINAE_FRIENDLY_ASSERT((fusion::result_of::invoke<fobj, sfinae_friendly::v2>));
88 SFINAE_FRIENDLY_ASSERT((fusion::result_of::invoke<fobj, sfinae_friendly::v3>));
98 SFINAE_FRIENDLY_ASSERT((fusion::result_of::invoke<nullary_fobj, sfinae_friendly::v1>));
99 SFINAE_FRIENDLY_ASSERT((fusion::result_of::invoke<nullary_fobj, sfinae_friendly::v2>));
100 SFINAE_FRIENDLY_ASSERT((fusion::result_of::invoke<nullary_fobj, sfinae_friendly::v3>));
119 SFINAE_FRIENDLY_ASSERT((fusion::result_of::invoke<fobj_nc, sfinae_friendly::v0>));
120 SFINAE_FRIENDLY_ASSERT((fusion::result_of::invoke<fobj_nc, sfinae_friendly::v1>));
121 SFINAE_FRIENDLY_ASSERT((fusion::result_of::invoke<fobj_nc, sfinae_friendly::v2>));
[all …]
/third_party/boost/libs/thread/test/functional/invoke/
Dinvoke_lvalue_pass.cpp49 boost::detail::invoke(f_void_1, i); in test_void_1()
56 boost::detail::invoke<void>(f_void_1, i); in test_void_1()
65 boost::detail::invoke(fp, i); in test_void_1()
73 boost::detail::invoke<void>(fp, i); in test_void_1()
81 boost::detail::invoke(fp, i); in test_void_1()
89 boost::detail::invoke<void>(fp, i); in test_void_1()
98 boost::detail::invoke(a0, i); in test_void_1()
106 boost::detail::invoke<void>(a0, i); in test_void_1()
115 boost::detail::invoke(fp, a); in test_void_1()
119 boost::detail::invoke(fp, ap); in test_void_1()
[all …]
Dinvoke_rvalue_pass.cpp46 boost::detail::invoke(f_void_1, 2); in test_void_1()
53 boost::detail::invoke(fp, 3); in test_void_1()
61 boost::detail::invoke(a0, 4); in test_void_1()
65 boost::detail::invoke<void>(a0, 4); in test_void_1()
73 boost::detail::invoke(fp, A_void_1()); in test_void_1()
77 boost::detail::invoke<void>(fp, A_void_1()); in test_void_1()
84 boost::detail::invoke(fp, &a); in test_void_1()
88 boost::detail::invoke<int>(fp, &a); in test_void_1()
97 boost::detail::invoke(fp, A_void_1()); in test_void_1()
101 boost::detail::invoke(fp, &a); in test_void_1()
[all …]
Dinvoke_int_0_pass.cpp47 BOOST_TEST_EQ(boost::detail::invoke(f), 1); in main()
48 BOOST_TEST_EQ(boost::detail::invoke(&f), 1); in main()
49 BOOST_TEST_EQ(boost::detail::invoke(A_int_0()), 4); in main()
50 BOOST_TEST_EQ(boost::detail::invoke(a), 4); in main()
51 BOOST_TEST_EQ(boost::detail::invoke(ca), 5); in main()
54 BOOST_TEST_EQ(boost::detail::invoke<int>(f), 1); in main()
55 BOOST_TEST_EQ(boost::detail::invoke<int>(&f), 1); in main()
58 BOOST_TEST_EQ(boost::detail::invoke<int>(A_int_0()), 4); in main()
63 BOOST_TEST_EQ(boost::detail::invoke<int>(a), 4); in main()
65 BOOST_TEST_EQ(boost::detail::invoke<int>(ca), 5); in main()
/third_party/boost/boost/safe_numerics/
Dchecked_integer.hpp71 F::template invoke<safe_numerics_error::positive_overflow_error>( in cast_impl()
79 F::template invoke<safe_numerics_error::negative_overflow_error>( in cast_impl()
99 F::template invoke<safe_numerics_error::positive_overflow_error>( in cast_impl()
119 F::template invoke<safe_numerics_error::positive_overflow_error>( in cast_impl()
134 F::template invoke<safe_numerics_error::domain_error>( in cast_impl()
142 F::template invoke<safe_numerics_error::positive_overflow_error>( in cast_impl()
212 return F::invoke( in cast()
246 F::template invoke<safe_numerics_error::positive_overflow_error>( in add()
264 F::template invoke<safe_numerics_error::positive_overflow_error>( in add()
269 F::template invoke<safe_numerics_error::negative_overflow_error>( in add()
[all …]
Dsafe_compare.hpp31 constexpr static bool invoke(const T & t, const U & u){ in invoke() function
40 constexpr static bool invoke(const T & t, const U & u){ in invoke() function
45 less_than<false, false>::invoke( in invoke()
56 constexpr static bool invoke(const T & t, const U & u){ in invoke() function
61 less_than<false, false>::invoke( in invoke()
79 >::template invoke(lhs, rhs); in less_than()
111 constexpr static bool invoke(const T & t, const U & u){ in invoke() function
120 constexpr static bool invoke(const T & t, const U & u){ in invoke() function
125 equal<false, false>::invoke( in invoke()
136 constexpr static bool invoke(const T & t, const U & u){ in invoke() function
[all …]
Dexception_policies.hpp126 constexpr static void invoke(const safe_numerics_error & e, const char * msg){ in invoke() function
132 constexpr static void invoke(const safe_numerics_error & e, const char * msg){ in invoke() function
138 constexpr static void invoke(const safe_numerics_error & e, const char * msg){ in invoke() function
144 constexpr static void invoke(const safe_numerics_error & e, const char * msg){ in invoke() function
155 dispatch_switch::dispatch_case<EP, a>::invoke(E, msg); in dispatch()
162 constexpr static checked_result<R> invoke( in invoke() function in boost::safe_numerics::dispatch_and_return
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DPropertiesTest.java119 Object default0 = getter.invoke(p0); in testFieldCoverage()
128 setter.invoke(p1, val0); in testFieldCoverage()
129 setter.invoke(p2, val0); in testFieldCoverage()
132 assertEquals(getter.invoke(p1), getter.invoke(p2)); in testFieldCoverage()
133 assertEquals(getter.invoke(p1), val0); in testFieldCoverage()
134 assertNotEquals(getter.invoke(p1), val1); in testFieldCoverage()
136 setter.invoke(p1, val1); in testFieldCoverage()
138 assertNotEquals(getter.invoke(p1), getter.invoke(p2)); in testFieldCoverage()
139 assertNotEquals(getter.invoke(p1), val0); in testFieldCoverage()
140 assertEquals(getter.invoke(p1), val1); in testFieldCoverage()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/
DPropertiesTest.java122 Object default0 = getter.invoke(p0); in testFieldCoverage()
131 setter.invoke(p1, val0); in testFieldCoverage()
132 setter.invoke(p2, val0); in testFieldCoverage()
135 assertEquals(getter.invoke(p1), getter.invoke(p2)); in testFieldCoverage()
136 assertEquals(getter.invoke(p1), val0); in testFieldCoverage()
137 assertNotEquals(getter.invoke(p1), val1); in testFieldCoverage()
139 setter.invoke(p1, val1); in testFieldCoverage()
141 assertNotEquals(getter.invoke(p1), getter.invoke(p2)); in testFieldCoverage()
142 assertNotEquals(getter.invoke(p1), val0); in testFieldCoverage()
143 assertEquals(getter.invoke(p1), val1); in testFieldCoverage()
[all …]
/third_party/boost/boost/thread/detail/
Dinvoke.hpp58 invoke(BOOST_THREAD_RV_REF(Fp) f, BOOST_THREAD_RV_REF(A0) a0, BOOST_THREAD_RV_REF(Args) ...args) in invoke() function
65 invoke(BOOST_THREAD_RV_REF(Fp) f, BOOST_THREAD_RV_REF(A0) a0, BOOST_THREAD_RV_REF(Args) ...args) in invoke() function
73 invoke(BOOST_THREAD_RV_REF(Fp) f, BOOST_THREAD_RV_REF(A0) a0, BOOST_THREAD_RV_REF(Args) ...args) in invoke() function
80 invoke(BOOST_THREAD_RV_REF(Fp) f, BOOST_THREAD_RV_REF(A0) a0, BOOST_THREAD_RV_REF(Args) ...args) in invoke() function
90 invoke(BOOST_THREAD_RV_REF(Fp) f, BOOST_THREAD_RV_REF(A0) a0) in invoke() function
98 invoke(BOOST_THREAD_RV_REF(Fp) f, BOOST_THREAD_RV_REF(A0) a0) in invoke() function
106 invoke(BOOST_THREAD_RV_REF(Fp) f, BOOST_THREAD_RV_REF(A0) a0) in invoke() function
114 invoke(BOOST_THREAD_RV_REF(Fp) f, BOOST_THREAD_RV_REF(A0) a0) in invoke() function
124 inline auto invoke(BOOST_THREAD_RV_REF(Fp) f, BOOST_THREAD_RV_REF(Args) ...args) in invoke() function
130 inline auto invoke(BOOST_THREAD_RV_REF(Fp) f, BOOST_THREAD_RV_REF(Args) ...args) in invoke() function
[all …]
/third_party/boost/boost/fusion/functional/adapter/
Dfused.hpp47 inline typename result_of::invoke<func_const_fwd_t,Seq const>::type
50 return fusion::invoke<func_const_fwd_t>(this->fnc_transformed,s); in operator ()()
55 inline typename result_of::invoke<func_fwd_t,Seq const>::type
58 return fusion::invoke<func_fwd_t>(this->fnc_transformed,s); in operator ()()
63 inline typename result_of::invoke<func_const_fwd_t,Seq>::type
66 return fusion::invoke<func_const_fwd_t>(this->fnc_transformed,s); in operator ()()
71 inline typename result_of::invoke<func_fwd_t,Seq>::type
74 return fusion::invoke<func_fwd_t>(this->fnc_transformed,s); in operator ()()
82 : result_of::invoke<func_const_fwd_t,
88 : result_of::invoke<func_fwd_t,
/third_party/boost/libs/context/test/
Dtest_invoke.cpp97 int result = ctx::detail::invoke( fn1, 1, 2); in test1()
105 int * result = ctx::detail::invoke( fn2, ip); in test2()
111 int * result = ctx::detail::invoke( fn2, & i); in test2()
121 int * result = ctx::detail::invoke( fn3, ir); in test3()
127 int * result = ctx::detail::invoke( fn3, i); in test3()
137 int & result = ctx::detail::invoke( fn4, ir); in test4()
144 int & result = ctx::detail::invoke( fn4, i); in test4()
153 int result = ctx::detail::invoke( fn5< callable >, 1, std::move( c) ); in test5()
159 int result = ctx::detail::invoke( fn5< movable >, 1, std::move( m) ); in test5()
168 int result = ctx::detail::invoke( c, 1, 2); in test6()
[all …]
/third_party/boost/libs/compute/test/
Dtest_invoke.cpp26 BOOST_CHECK_EQUAL(compute::invoke(compute::abs<int>(), queue, -3), 3); in BOOST_AUTO_TEST_CASE()
27 BOOST_CHECK_CLOSE(compute::invoke(compute::pow<float>(), queue, 2.f, 8.f), 256.f, 1e-4); in BOOST_AUTO_TEST_CASE()
37 BOOST_CHECK_EQUAL(compute::invoke(plus_two, queue, 2), 4); in BOOST_AUTO_TEST_CASE()
47 BOOST_CHECK_EQUAL(compute::invoke(get_max, queue, 10.f, 20.f), 20.f); in BOOST_AUTO_TEST_CASE()
55 BOOST_CHECK_EQUAL(compute::invoke(_1 / 2, queue, 4), 2); in BOOST_AUTO_TEST_CASE()
56 BOOST_CHECK_EQUAL(compute::invoke(_1 * _2 + 1, queue, 3, 3), 10); in BOOST_AUTO_TEST_CASE()
/third_party/typescript/tests/baselines/reference/
DnullableFunctionError.errors.txt1 tests/cases/compiler/nullableFunctionError.ts(1,1): error TS2721: Cannot invoke an object which is …
2 tests/cases/compiler/nullableFunctionError.ts(2,1): error TS2722: Cannot invoke an object which is …
3 tests/cases/compiler/nullableFunctionError.ts(4,1): error TS2723: Cannot invoke an object which is …
9 !!! error TS2721: Cannot invoke an object which is possibly 'null'.
12 !!! error TS2722: Cannot invoke an object which is possibly 'undefined'.
16 !!! error TS2723: Cannot invoke an object which is possibly 'null' or 'undefined'.
DesModuleInteropPrettyErrorRelatedInformation.symbols15 function invoke(f: () => void) { f(); }
16 >invoke : Symbol(invoke, Decl(index.ts, 0, 29))
20 invoke(foo);
21 >invoke : Symbol(invoke, Decl(index.ts, 0, 29))
DesModuleInteropPrettyErrorRelatedInformation.types13 function invoke(f: () => void) { f(); }
14 >invoke : (f: () => void) => void
19 invoke(foo);
20 >invoke(foo) : void
21 >invoke : (f: () => void) => void
DcontextuallyTypedByDiscriminableUnion.js11 function invoke(item: ADT) { function
20 invoke({
29 function invoke(item) {
37 invoke({
DcontextuallyTypedByDiscriminableUnion.symbols23 function invoke(item: ADT) {
24 >invoke : Symbol(invoke, Decl(contextuallyTypedByDiscriminableUnion.ts, 6, 2))
46 invoke({
47 >invoke : Symbol(invoke, Decl(contextuallyTypedByDiscriminableUnion.ts, 6, 2))
/third_party/boost/boost/serialization/
Dextended_type_info_no_rtti.hpp78 static const char * invoke(){ in invoke() function
88 static const char * invoke();
90 static const char * invoke(){ in invoke() function
97 return type::invoke(); in invoke()
122 return action<guid_defined< T >::value >::invoke(); in get_key()
125 return action<guid_defined< T >::value >::invoke(); in get_debug_info()
Dbase_object.hpp64 static void const * invoke(){ in invoke() function
71 static void const * invoke(){ in invoke() function
75 static void const * invoke(){ in invoke() function
81 return type::invoke(); in invoke()
93 detail::base_register<type, Derived>::invoke(); in base_object()
/third_party/boost/boost/archive/detail/
Doserializer.hpp236 static void invoke(Archive & ar, const T & t){ in invoke() function
243 static void invoke(Archive & ar, const T & t){ in invoke() function
257 static void invoke(Archive &ar, const T & t){ in invoke() function
273 static void invoke(Archive &ar, const T &t){ in invoke() function
275 save_standard::invoke(ar, t); in invoke()
283 static void invoke(Archive & ar, const T & t){ in invoke() function
315 typex::invoke(ar, t); in invoke()
318 static void invoke(Archive & ar, T & t){ in invoke() function
321 invoke(ar, const_cast<const T &>(t)); in invoke()
471 static void invoke(Archive &ar, const TPtr t){ in invoke() function
[all …]
/third_party/boost/boost/python/detail/
Dinvoke.hpp60 (3, (0, BOOST_PYTHON_MAX_ARITY, <boost/python/detail/invoke.hpp>))
71 inline PyObject* invoke(invoke_tag_<false,false>, RC const& rc, F& f BOOST_PP_ENUM_TRAILING_BINARY_…
77 inline PyObject* invoke(invoke_tag_<true,false>, RC const&, F& f BOOST_PP_ENUM_TRAILING_BINARY_PARA…
84 inline PyObject* invoke(invoke_tag_<false,true>, RC const& rc, F& f, TC& tc BOOST_PP_ENUM_TRAILING_…
90 inline PyObject* invoke(invoke_tag_<true,true>, RC const&, F& f, TC& tc BOOST_PP_ENUM_TRAILING_BINA…
/third_party/boost/boost/proto/context/detail/preprocessed/
Ddefault_eval.hpp23 return this->invoke(expr, context, is_member_function_pointer<function_type>()); in operator ()()
26 result_type invoke(Expr &expr, Context &context, mpl::false_) const in invoke() function
32 result_type invoke(Expr &expr, Context &context, mpl::true_) const in invoke() function
57 return this->invoke(expr, context, is_member_function_pointer<function_type>()); in operator ()()
60 result_type invoke(Expr &expr, Context &context, mpl::false_) const in invoke() function
66 result_type invoke(Expr &expr, Context &context, mpl::true_) const in invoke() function
91 return this->invoke(expr, context, is_member_function_pointer<function_type>()); in operator ()()
94 result_type invoke(Expr &expr, Context &context, mpl::false_) const in invoke() function
100 result_type invoke(Expr &expr, Context &context, mpl::true_) const in invoke() function
125 return this->invoke(expr, context, is_member_function_pointer<function_type>()); in operator ()()
[all …]

12345678910>>...44