Home
last modified time | relevance | path

Searched refs:ArgTypes (Results 1 – 25 of 83) sorted by relevance

1234

/external/clang/test/CXX/temp/temp.decls/temp.variadic/
Dinjected-class-name.cpp49 template<typename R, typename ...ArgTypes>
50 struct X<R(ArgTypes...)> {
51 X<R(ArgTypes...)> f();
54 template<typename R, typename ...ArgTypes>
55 X<R(ArgTypes...)> X<R(ArgTypes...)>::f() { return *this; } in f()
61 template<typename ...ArgTypes> int g(ArgTypes...);
65 template<typename R, typename ...ArgTypes>
66 struct X1<R(ArgTypes...)> {
67 unsigned_c<sizeof(1 + g(ArgTypes()...))> f();
70 template<typename R, typename ...ArgTypes>
[all …]
/external/pigweed/third_party/fuchsia/repo/sdk/lib/fit/include/lib/fit/
Dtraits.h56 template <typename FunctorType, typename ReturnType, typename... ArgTypes>
57 struct callable_traits<ReturnType (FunctorType::*)(ArgTypes...)>
58 : public callable_traits<ReturnType (FunctorType::*)(ArgTypes...) const> {};
61 template <typename FunctorType, typename ReturnType, typename... ArgTypes>
62 struct callable_traits<ReturnType (FunctorType::*)(ArgTypes...) const>
63 : public callable_traits<ReturnType (*)(ArgTypes...)> {
68 template <typename ReturnType, typename... ArgTypes>
69 struct callable_traits<ReturnType (*)(ArgTypes...)>
70 : public callable_traits<ReturnType(ArgTypes...)> {
71 using type = ReturnType (*)(ArgTypes...);
[all …]
/external/libchrome/base/task_scheduler/
Dtask_traits_details.h18 template <class CheckedType, class FirstArgType, class... ArgTypes>
19 struct HasArgOfType<CheckedType, FirstArgType, ArgTypes...>
22 HasArgOfType<CheckedType, ArgTypes...>>::type {};
52 class... ArgTypes,
60 const ArgTypes&... args) {
61 static_assert(!HasArgOfType<FirstArgType, ArgTypes...>::value,
68 template <class GetterType, class FirstArgType, class... ArgTypes>
73 const ArgTypes&... args) {
98 template <class GetterType, class... ArgTypes>
101 const ArgTypes&... args) {
Dtask_traits.h148 template <class... ArgTypes,
150 decltype(ValidTrait(std::declval<ArgTypes>()))...>>
151 constexpr TaskTraits(ArgTypes... args) in TaskTraits()
153 internal::HasArgOfType<TaskPriority, ArgTypes...>::value), in TaskTraits()
158 internal::HasArgOfType<TaskShutdownBehavior, ArgTypes...>::value), in TaskTraits()
/external/cronet/base/
Dtraits_bag_unittest.cc30 template <class... ArgTypes,
32 trait_helpers::AreValidTraits<ValidTrait, ArgTypes...>::value>>
33 constexpr TestTraits(ArgTypes... args) in TestTraits()
34 : has_example_trait(trait_helpers::HasTrait<ExampleTrait, ArgTypes...>()), in TestTraits()
47 template <class... ArgTypes,
49 trait_helpers::AreValidTraits<ValidTrait, ArgTypes...>::value>>
50 constexpr FilteredTestTraits(ArgTypes... args) in FilteredTestTraits()
61 template <class... ArgTypes,
63 trait_helpers::AreValidTraits<ValidTrait, ArgTypes...>::value>>
64 constexpr RequiredEnumTestTraits(ArgTypes... args) in RequiredEnumTestTraits()
[all …]
Dtraits_bag.h129 class... ArgTypes,
131 {std::is_constructible<TraitFilterType, ArgTypes>::value...})>>
133 ArgTypes... args) { in GetTraitFromArgListImpl()
138 template <class TraitFilterType, class... ArgTypes>
140 ArgTypes... args) { in GetTraitFromArgListImpl()
150 template <class TraitFilterType, class... ArgTypes>
152 ArgTypes... args) { in GetTraitFromArgList()
154 count({std::is_constructible<TraitFilterType, ArgTypes>::value...}, in GetTraitFromArgList()
216 template <class ValidTraits, class... ArgTypes>
218 std::bool_constant<all_of({IsValidTrait<ValidTraits, ArgTypes>::value...})>;
Dtraits_bag_unittest.nc29 template <class... ArgTypes,
31 trait_helpers::AreValidTraits<ValidTrait, ArgTypes...>::value>>
32 constexpr TestTraits(ArgTypes... args)
34 boolean_trait(trait_helpers::HasTrait<BooleanTrait, ArgTypes...>()) {}
/external/cronet/base/task/
Dtask_traits.h234 template <class... ArgTypes,
236 trait_helpers::AreValidTraits<ValidTrait, ArgTypes...>::value>>
239 constexpr TaskTraits(ArgTypes... args) in TaskTraits()
248 (trait_helpers::HasTrait<TaskShutdownBehavior, ArgTypes...>() in TaskTraits()
256 (trait_helpers::HasTrait<ThreadPolicy, ArgTypes...>() in TaskTraits()
259 may_block_(trait_helpers::HasTrait<MayBlock, ArgTypes...>()), in TaskTraits()
261 trait_helpers::HasTrait<WithBaseSyncPrimitives, ArgTypes...>()) {} in TaskTraits()
/external/clang/lib/CodeGen/
DCGCUDABuiltin.cpp25 llvm::Type *ArgTypes[] = {llvm::Type::getInt8PtrTy(M.getContext()), in GetVprintfDeclaration() local
28 llvm::Type::getInt32Ty(M.getContext()), ArgTypes, false); in GetVprintfDeclaration()
99 llvm::SmallVector<llvm::Type *, 8> ArgTypes; in EmitCUDADevicePrintfCallExpr() local
101 ArgTypes.push_back(Args[I].RV.getScalarVal()->getType()); in EmitCUDADevicePrintfCallExpr()
102 llvm::Type *AllocaTy = llvm::StructType::create(ArgTypes, "printf_args"); in EmitCUDADevicePrintfCallExpr()
DObjectFilePCHContainerOperations.cpp107 SmallVector<QualType, 16> ArgTypes; in VisitFunctionDecl() local
109 ArgTypes.push_back(i->getType()); in VisitFunctionDecl()
111 QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes, in VisitFunctionDecl()
123 SmallVector<QualType, 16> ArgTypes; in VisitObjCMethodDecl() local
124 ArgTypes.push_back(D->getSelfType(Ctx, D->getClassInterface(), in VisitObjCMethodDecl()
126 ArgTypes.push_back(Ctx.getObjCSelType()); in VisitObjCMethodDecl()
128 ArgTypes.push_back(i->getType()); in VisitObjCMethodDecl()
130 QualType FnTy = Ctx.getFunctionType(RetTy, ArgTypes, in VisitObjCMethodDecl()
/external/libcxx/test/support/
Duses_alloc_types.hpp86 template <class ...ArgTypes, class TestType>
94 return value.template checkConstruct<ArgTypes&&...>(form); in checkConstruct()
96 return value.template checkConstruct<ArgTypes&&...>(form, alloc); in checkConstruct()
101 template <class ...ArgTypes, class TestType>
103 return value.template checkConstruct<ArgTypes&&...>(form); in checkConstruct()
191 template <class ...ArgTypes>
193 auto expectArgs = &makeArgumentID<ArgTypes...>(); in checkConstruct()
198 template <class ...ArgTypes>
201 auto ExpectID = &makeArgumentID<ArgTypes...>() ; in checkConstruct()
/external/cronet/buildtools/third_party/libc++/trunk/include/
Dfunctional58 template <class... ArgTypes>
59 constexpr typename result_of<T&(ArgTypes&&...)>::type // constexpr since C++20
60 operator() (ArgTypes&&...) const
61 noexcept(is_nothrow_invocable_v<T&, ArgTypes...>); // noexcept since C++17
392 template<class R, class... ArgTypes>
393 class function<R(ArgTypes...)>
394 : public unary_function<T1, R> // iff sizeof...(ArgTypes) == 1 and
395 // ArgTypes contains T1
396 : public binary_function<T1, T2, R> // iff sizeof...(ArgTypes) == 2 and
397 // ArgTypes contains T1 and T2
[all …]
Dtype_traits152 template <class Fn, class... ArgTypes> struct is_invocable;
153 template <class R, class Fn, class... ArgTypes> struct is_invocable_r;
155 template <class Fn, class... ArgTypes> struct is_nothrow_invocable;
156 template <class R, class Fn, class... ArgTypes> struct is_nothrow_invocable_r;
169 …template <class Fn, class... ArgTypes> class result_of<Fn(ArgTypes...)>; // deprecated in C++17; r…
170 template <class Fn, class... ArgTypes> struct invoke_result; // C++17
237 template <class Fn, class... ArgTypes>
238 using invoke_result_t = typename invoke_result<Fn, ArgTypes...>::type; // C++17
396 template <class Fn, class... ArgTypes> inline constexpr bool is_invocable_v
397 = is_invocable<Fn, ArgTypes...>::value; // C++17
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/support/
Duses_alloc_types.h74 template <class ...ArgTypes, class TestType>
82 return value.template checkConstruct<ArgTypes&&...>(form); in checkConstruct()
84 return value.template checkConstruct<ArgTypes&&...>(form, alloc); in checkConstruct()
89 template <class ...ArgTypes, class TestType>
91 return value.template checkConstruct<ArgTypes&&...>(form); in checkConstruct()
179 template <class ...ArgTypes>
181 auto expectArgs = &makeArgumentID<ArgTypes...>();
189 template <class ...ArgTypes>
192 auto ExpectID = &makeArgumentID<ArgTypes...>() ;
/external/llvm/unittests/IR/
DFunctionTest.cpp19 Type *ArgTypes[] = {Type::getInt8Ty(C), Type::getInt32Ty(C)}; in TEST() local
20 FunctionType *FTy = FunctionType::get(Type::getVoidTy(C), ArgTypes, false); in TEST()
41 Type *ArgTypes[] = {Type::getInt8Ty(C), Type::getInt32Ty(C)}; in TEST() local
42 FunctionType *FTy = FunctionType::get(Type::getVoidTy(C), ArgTypes, false); in TEST()
/external/libcxx/include/experimental/
Dfunctional31 template<class R, class... ArgTypes> class function<R(ArgTypes...)>;
33 template<class R, class... ArgTypes>
34 void swap(function<R(ArgTypes...)>&, function<R(ArgTypes...)>&);
36 template<class R, class... ArgTypes>
37 bool operator==(const function<R(ArgTypes...)>&, nullptr_t) noexcept;
38 template<class R, class... ArgTypes>
39 bool operator==(nullptr_t, const function<R(ArgTypes...)>&) noexcept;
40 template<class R, class... ArgTypes>
41 bool operator!=(const function<R(ArgTypes...)>&, nullptr_t) noexcept;
42 template<class R, class... ArgTypes>
[all …]
Dtype_traits26 template <class F, class... ArgTypes> class invocation_type<F(ArgTypes...)>;
28 template <class F, class... ArgTypes> class raw_invocation_type<F(ArgTypes...)>;
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/
Dp21.cpp11 template<class R, class ... ArgTypes> struct X<R(int, ArgTypes ...)> {
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DR600OpenCLImageTypeLoweringPass.cpp273 SmallVector<Type *, 8> ArgTypes; in addImplicitArgs() local
281 ArgTypes.push_back(FT->getParamType(i)); in addImplicitArgs()
289 ArgTypes.push_back(ImageSizeType); in addImplicitArgs()
294 ArgTypes.push_back(ImageFormatType); in addImplicitArgs()
305 auto NewFT = FunctionType::get(FT->getReturnType(), ArgTypes, false); in addImplicitArgs()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUOpenCLImageTypeLoweringPass.cpp257 SmallVector<Type *, 8> ArgTypes; in addImplicitArgs() local
265 ArgTypes.push_back(FT->getParamType(i)); in addImplicitArgs()
273 ArgTypes.push_back(ImageSizeType); in addImplicitArgs()
278 ArgTypes.push_back(ImageFormatType); in addImplicitArgs()
289 auto NewFT = FunctionType::get(FT->getReturnType(), ArgTypes, false); in addImplicitArgs()
/external/clang/test/CodeGenCXX/
Dmangle-variadic-templates.cpp55 template<typename R, typename ...ArgTypes> identity<R(ArgTypes...)> f5() {} in f5()
/external/pigweed/pw_tokenizer/public/pw_tokenizer/
Dencode_args.h69 template <typename... ArgTypes>
72 internal::ArgEncodedSizeBytes<ArgTypes>()); in MinEncodingBufferSizeBytes()
/external/cronet/buildtools/third_party/libc++/trunk/include/experimental/
Dtype_traits25 template <class F, class... ArgTypes> class invocation_type<F(ArgTypes...)>;
27 template <class F, class... ArgTypes> class raw_invocation_type<F(ArgTypes...)>;
/external/llvm/include/llvm/ADT/
DOptional.h74 template<typename ...ArgTypes>
75 void emplace(ArgTypes &&...Args) { in emplace()
78 new (storage.buffer) T(std::forward<ArgTypes>(Args)...); in emplace()
/external/angle/src/libANGLE/
DResourceManager.h88 template <typename... ArgTypes>
91 ArgTypes... args) in checkObjectAllocation()
112 template <typename... ArgTypes>
115 ArgTypes... args) in checkObjectAllocationImpl()

1234