Home
last modified time | relevance | path

Searched refs:Fun (Results 1 – 25 of 112) sorted by relevance

12345

/external/catch2/include/internal/benchmark/detail/
Dcatch_complete_invoke.hpp32 template <typename Fun, typename... Args>
33 static Result invoke(Fun&& fun, Args&&... args) { in invoke()
34 return std::forward<Fun>(fun)(std::forward<Args>(args)...); in invoke()
39 template <typename Fun, typename... Args>
40 static CompleteType_t<void> invoke(Fun&& fun, Args&&... args) { in invoke()
41 std::forward<Fun>(fun)(std::forward<Args>(args)...); in invoke()
49 template <typename Fun, typename... Args>
50 CompleteType_t<ResultOf_t<Fun(Args...)>> complete_invoke(Fun&& fun, Args&&... args) { in complete_invoke()
51 …return CompleteInvoker<ResultOf_t<Fun(Args...)>>::invoke(std::forward<Fun>(fun), std::forward<Args… in complete_invoke()
57 template <typename Fun>
[all …]
Dcatch_run_for_at_least.hpp27 template <typename Clock, typename Fun>
28 TimingOf<Clock, Fun(int)> measure_one(Fun&& fun, int iters, std::false_type) { in measure_one()
31 template <typename Clock, typename Fun>
32 TimingOf<Clock, Fun(Chronometer)> measure_one(Fun&& fun, int iters, std::true_type) { in measure_one()
39 template <typename Clock, typename Fun>
40 …using run_for_at_least_argument_t = typename std::conditional<is_callable<Fun(Chronometer)>::value…
48 template <typename Clock, typename Fun>
49 …TimingOf<Clock, Fun(run_for_at_least_argument_t<Clock, Fun>)> run_for_at_least(ClockDuration<Clock… in run_for_at_least()
52 auto&& Timing = measure_one<Clock>(fun, iters, is_callable<Fun(Chronometer)>()); in run_for_at_least()
Dcatch_benchmark_function.hpp46 template <typename Fun>
48 model(Fun&& fun) : fun(std::move(fun)) {} in model()
49 model(Fun const& fun) : fun(fun) {} in model()
51 model<Fun>* clone() const override { return new model<Fun>(*this); } in clone()
54 call(meter, is_callable<Fun(Chronometer)>()); in call()
63 Fun fun;
75 template <typename Fun,
76 … typename std::enable_if<!is_related<Fun, BenchmarkFunction>::value, int>::type = 0>
77 BenchmarkFunction(Fun&& fun) in BenchmarkFunction()
78 : f(new model<typename std::decay<Fun>::type>(std::forward<Fun>(fun))) {} in BenchmarkFunction()
Dcatch_repeat.hpp20 template <typename Fun>
27 Fun fun;
29 template <typename Fun>
30 repeater<typename std::decay<Fun>::type> repeat(Fun&& fun) { in repeat()
31 return { std::forward<Fun>(fun) }; in repeat()
Dcatch_measure.hpp23 template <typename Clock, typename Fun, typename... Args>
24 TimingOf<Clock, Fun(Args...)> measure(Fun&& fun, Args&&... args) { in measure()
/external/openscreen/third_party/abseil/src/absl/types/internal/
Dconformance_testing_helpers.h89 template <class Fun, class /*Enabler*/ = void>
92 template <class Fun>
94 Fun, absl::void_t<decltype(std::declval<const Fun&>()())>>
96 using result_type = decltype(std::declval<const Fun&>()());
104 template <class Fun>
105 struct IsNullaryCallable : IsNullaryCallableImpl<Fun> {};
112 template <class Fun>
172 template <class Fun>
173 struct ResultOfGenerator<GeneratorType<Fun>> {
174 using type = decltype(std::declval<const Fun&>()());
[all …]
Dconformance_testing.h81 template <class Fun>
83 decltype(std::declval<const Fun&>()()) operator()() const in operator()
84 noexcept(noexcept(std::declval<const Fun&>()())) { in operator()
88 Fun fun;
94 template <class Fun,
95 absl::enable_if_t<IsNullaryCallable<Fun>::value>** = nullptr>
96 GeneratorType<Fun> Generator(Fun fun, const char* description) { in Generator()
97 return GeneratorType<Fun>{absl::move(fun), description}; in Generator()
298 template <class Fun>
299 void operator()(const Fun& generator) const { in operator()
[all …]
/external/angle/third_party/abseil-cpp/absl/types/internal/
Dconformance_testing_helpers.h89 template <class Fun, class /*Enabler*/ = void>
92 template <class Fun>
94 Fun, absl::void_t<decltype(std::declval<const Fun&>()())>>
96 using result_type = decltype(std::declval<const Fun&>()());
104 template <class Fun>
105 struct IsNullaryCallable : IsNullaryCallableImpl<Fun> {};
112 template <class Fun>
172 template <class Fun>
173 struct ResultOfGenerator<GeneratorType<Fun>> {
174 using type = decltype(std::declval<const Fun&>()());
[all …]
Dconformance_testing.h81 template <class Fun>
83 decltype(std::declval<const Fun&>()()) operator()() const in operator()
84 noexcept(noexcept(std::declval<const Fun&>()())) { in operator()
88 Fun fun;
94 template <class Fun,
95 absl::enable_if_t<IsNullaryCallable<Fun>::value>** = nullptr>
96 GeneratorType<Fun> Generator(Fun fun, const char* description) { in Generator()
97 return GeneratorType<Fun>{absl::move(fun), description}; in Generator()
298 template <class Fun>
299 void operator()(const Fun& generator) const { in operator()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/types/internal/
Dconformance_testing_helpers.h89 template <class Fun, class /*Enabler*/ = void>
92 template <class Fun>
94 Fun, absl::void_t<decltype(std::declval<const Fun&>()())>>
96 using result_type = decltype(std::declval<const Fun&>()());
104 template <class Fun>
105 struct IsNullaryCallable : IsNullaryCallableImpl<Fun> {};
112 template <class Fun>
172 template <class Fun>
173 struct ResultOfGenerator<GeneratorType<Fun>> {
174 using type = decltype(std::declval<const Fun&>()());
[all …]
Dconformance_testing.h81 template <class Fun>
83 decltype(std::declval<const Fun&>()()) operator()() const in operator()
84 noexcept(noexcept(std::declval<const Fun&>()())) { in operator()
88 Fun fun;
94 template <class Fun,
95 absl::enable_if_t<IsNullaryCallable<Fun>::value>** = nullptr>
96 GeneratorType<Fun> Generator(Fun fun, const char* description) { in Generator()
97 return GeneratorType<Fun>{absl::move(fun), description}; in Generator()
298 template <class Fun>
299 void operator()(const Fun& generator) const { in operator()
[all …]
/external/libtextclassifier/abseil-cpp/absl/types/internal/
Dconformance_testing_helpers.h89 template <class Fun, class /*Enabler*/ = void>
92 template <class Fun>
94 Fun, absl::void_t<decltype(std::declval<const Fun&>()())>>
96 using result_type = decltype(std::declval<const Fun&>()());
104 template <class Fun>
105 struct IsNullaryCallable : IsNullaryCallableImpl<Fun> {};
112 template <class Fun>
172 template <class Fun>
173 struct ResultOfGenerator<GeneratorType<Fun>> {
174 using type = decltype(std::declval<const Fun&>()());
[all …]
Dconformance_testing.h81 template <class Fun>
83 decltype(std::declval<const Fun&>()()) operator()() const in operator()
84 noexcept(noexcept(std::declval<const Fun&>()())) { in operator()
88 Fun fun;
94 template <class Fun,
95 absl::enable_if_t<IsNullaryCallable<Fun>::value>** = nullptr>
96 GeneratorType<Fun> Generator(Fun fun, const char* description) { in Generator()
97 return GeneratorType<Fun>{absl::move(fun), description}; in Generator()
298 template <class Fun>
299 void operator()(const Fun& generator) const { in operator()
[all …]
/external/catch2/include/internal/benchmark/
Dcatch_chronometer.hpp41 template <typename Fun>
42 void measure(Fun&& fun) { measure(std::forward<Fun>(fun), is_callable<Fun(int)>()); } in measure()
51 template <typename Fun>
52 void measure(Fun&& fun, std::false_type) { in measure()
56 template <typename Fun>
57 void measure(Fun&& fun, std::true_type) { in measure()
/external/llvm-project/clang/test/Frontend/
Dftime-report-template-decl.cpp79 static void Fun(U);
86 void L<k>::O<T>::Fun(U) {} in Fun() function in PR17637::L::O
88 void Instantiate() { L<0>::O<int>::Fun(0); } in Instantiate()
120 static oneT Fun(U);
126 oneT L<k>::O<T>::Fun(U) { return one; } in Fun() function in explicit_partial_specializations::L::O
131 oneT L<0>::O<char>::Fun(U) { return one; } in Fun() function in explicit_partial_specializations::L::O
134 sassert(sizeof(L<0>::O<int>::Fun(0)) == sizeof(one)); in Instantiate()
135 sassert(sizeof(L<0>::O<char>::Fun(0)) == sizeof(one)); in Instantiate()
/external/clang/test/Parser/
Dcxx-template-decl.cpp151 static void Fun(U);
158 void L<k>::O<T>::Fun(U) {}
160 void Instantiate() { L<0>::O<int>::Fun(0); }
192 static oneT Fun(U);
199 oneT L<k>::O<T>::Fun(U) { return one; }
204 oneT L<0>::O<char>::Fun(U) { return one; }
208 sassert(sizeof(L<0>::O<int>::Fun(0)) == sizeof(one));
209 sassert(sizeof(L<0>::O<char>::Fun(0)) == sizeof(one));
/external/catch2/include/internal/
Dcatch_meta.hpp20 template <typename Fun, typename... Args>
21 true_given<decltype(std::declval<Fun>()(std::declval<Args>()...))> static test(int);
29 template <typename Fun, typename... Args>
30 struct is_callable<Fun(Args...)> : decltype(is_callable_tester::test<Fun, Args...>(0)) {};
/external/llvm-project/clang/lib/Sema/
DDeclSpec.cpp194 I.Fun.hasPrototype = hasProto; in getFunction()
195 I.Fun.isVariadic = EllipsisLoc.isValid(); in getFunction()
196 I.Fun.isAmbiguous = isAmbiguous; in getFunction()
197 I.Fun.LParenLoc = LParenLoc.getRawEncoding(); in getFunction()
198 I.Fun.EllipsisLoc = EllipsisLoc.getRawEncoding(); in getFunction()
199 I.Fun.RParenLoc = RParenLoc.getRawEncoding(); in getFunction()
200 I.Fun.DeleteParams = false; in getFunction()
201 I.Fun.NumParams = NumParams; in getFunction()
202 I.Fun.Params = nullptr; in getFunction()
203 I.Fun.RefQualifierIsLValueRef = RefQualifierIsLvalueRef; in getFunction()
[all …]
/external/clang/lib/Sema/
DDeclSpec.cpp187 I.Fun.AttrList = nullptr; in getFunction()
188 I.Fun.hasPrototype = hasProto; in getFunction()
189 I.Fun.isVariadic = EllipsisLoc.isValid(); in getFunction()
190 I.Fun.isAmbiguous = isAmbiguous; in getFunction()
191 I.Fun.LParenLoc = LParenLoc.getRawEncoding(); in getFunction()
192 I.Fun.EllipsisLoc = EllipsisLoc.getRawEncoding(); in getFunction()
193 I.Fun.RParenLoc = RParenLoc.getRawEncoding(); in getFunction()
194 I.Fun.DeleteParams = false; in getFunction()
195 I.Fun.TypeQuals = TypeQuals; in getFunction()
196 I.Fun.NumParams = NumParams; in getFunction()
[all …]
/external/llvm-project/clang/test/Parser/
Dcxx-template-decl.cpp156 static void Fun(U);
163 void L<k>::O<T>::Fun(U) {}
165 void Instantiate() { L<0>::O<int>::Fun(0); }
197 static oneT Fun(U);
204 oneT L<k>::O<T>::Fun(U) { return one; }
209 oneT L<0>::O<char>::Fun(U) { return one; }
213 sassert(sizeof(L<0>::O<int>::Fun(0)) == sizeof(one));
214 sassert(sizeof(L<0>::O<char>::Fun(0)) == sizeof(one));
/external/llvm-project/clang/test/Modules/Inputs/set-pure-crash/
Db.h6 template <typename Fun, typename = simple<Fun>>
7 void foo(Fun) {} in foo() argument
/external/clang/test/PCH/
Dstruct.h11 struct Fun;
13 struct Fun *fun;
15 struct Fun { struct
/external/llvm-project/clang/test/PCH/
Dstruct.h11 struct Fun;
13 struct Fun *fun;
15 struct Fun { struct
/external/llvm-project/clang-tools-extra/clangd/support/
DShutdown.h67 template <typename Fun, typename Ret = decltype(std::declval<Fun>()())>
70 const Fun &F) { in retryAfterSignalUnlessShutdown()
/external/mockito/src/test/java/org/mockitousage/bugs/
DActualInvocationHasNullArgumentNPEBugTest.java16 public interface Fun { interface in ActualInvocationHasNullArgumentNPEBugTest
23 Fun mockFun = mock(Fun.class); in shouldAllowPassingNullArgument()

12345