Home
last modified time | relevance | path

Searched refs:Functor (Results 1 – 25 of 27) sorted by relevance

12

/llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/func.invoke/
H A Dinvoke_constexpr.pass.cpp83 template <class Signature, class Expect, class Functor>
84 constexpr void test_b12(Functor&& f) { in test_b12()
109 template <class Expect, class Functor>
110 constexpr void test_b34(Functor&& f) { in test_b34()
117 std::invoke(func_ptr, std::forward<Functor>(f)) in test_b34()
122 typedef typename std::result_of<ClassFunc&&(Functor&&)>::type in test_b34()
128 std::invoke(func_ptr, std::forward<Functor>(f)); in test_b34()
132 template <class Expect, class Functor>
133 constexpr void test_b5(Functor&& f) { in test_b5()
138 std::invoke(std::forward<Functor>(f), std::move(arg)) in test_b5()
[all …]
H A Dinvoke.pass.cpp86 template <class Signature, class Expect, class Functor>
87 void test_b12(Functor&& f) { in test_b12()
112 template <class Expect, class Functor>
113 void test_b34(Functor&& f) { in test_b34()
120 std::invoke(func_ptr, std::forward<Functor>(f)) in test_b34()
125 typedef typename std::result_of<ClassFunc&&(Functor&&)>::type in test_b34()
131 std::invoke(func_ptr, std::forward<Functor>(f)); in test_b34()
135 template <class Expect, class Functor>
136 void test_b5(Functor&& f) { in test_b5()
141 std::invoke(std::forward<Functor>(f), std::move(arg)) in test_b5()
[all …]
/llvm-project-15.0.7/flang/runtime/
H A Dfindloc.cpp128 template <int TARGET_KIND> struct Functor { struct
136 ApplyIntegerKind<LocationResultHelper<Accumulator>::template Functor, in operator ()()
146 template <int KIND> struct Functor { struct
159 HELPER<CAT, KIND, TypeCategory::Real>::template Functor, void>( in operator ()()
221 TotalNumericFindlocHelper>::template Functor, in RTNAME()
227 TotalNumericFindlocHelper>::template Functor, in RTNAME()
233 TotalNumericFindlocHelper>::template Functor, in RTNAME()
259 template <int TARGET_KIND> struct Functor { struct
266 ApplyIntegerKind<PartialLocationHelper<Accumulator>::template Functor, in operator ()()
279 ApplyIntegerKind<PartialLocationHelper<Accumulator>::template Functor, in operator ()()
[all …]
H A Dextrema.cpp111 ApplyIntegerKind<LocationResultHelper<ACCUMULATOR>::template Functor, void>( in LocationHelper()
132 template <int KIND> struct Functor { struct
168 TypedMaxOrMinLocHelper<TypeCategory::Real, IS_MAX>::template Functor, in TypedMaxOrMinLoc()
174 IS_MAX>::template Functor, in TypedMaxOrMinLoc()
227 template <int KIND> struct Functor { struct
263 NumericCompare>::template Functor, in TypedPartialMaxOrMinLoc()
269 IS_MAX, NumericCompare>::template Functor, in TypedPartialMaxOrMinLoc()
275 IS_MAX, CharacterCompare>::template Functor, in TypedPartialMaxOrMinLoc()
379 template <int KIND> struct Functor { struct
451 template <int KIND> struct Functor { struct
[all …]
H A Dreduction-templates.h232 template <int KIND> struct Functor { struct
252 PartialIntegerReductionHelper<INTEGER_ACCUM>::template Functor, void>( in PartialIntegerReduction()
258 template <int KIND> struct Functor { struct
288 REAL_ACCUM>::template Functor, in TypedPartialNumericReduction()
294 COMPLEX_ACCUM>::template Functor, in TypedPartialNumericReduction()
304 template <int KIND> struct Functor { struct
313 template <int KIND> struct Functor { struct
H A Dreduction.cpp261 template <int KIND> struct Functor { struct
285 ApplyLogicalKind<LogicalReduceHelper<REDUCTION>::template Functor, void>( in DoReduceLogicalDimension()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.partitions/
H A Dranges.is_partitioned.pass.cpp28 struct Functor { struct
34 std::ranges::is_partitioned(iter, sent, Functor{});
49 static_assert(HasIsPartitionedItPred<Functor>);
55 std::ranges::is_partitioned(range, Functor{});
70 static_assert(HasIsPartitionedRPred<Functor>);
/llvm-project-15.0.7/clang-tools-extra/test/clang-change-namespace/
H A Dlambda-function.cpp8 template <typename Functor>
9 function(Functor f) {} in function()
/llvm-project-15.0.7/libcxx/test/libcxx/type_traits/
H A Dis_callable.compile.pass.cpp11 struct Functor { struct
25 static_assert(std::__is_callable<Functor>::value, "");
/llvm-project-15.0.7/clang/test/Parser/
H A Dobjcxx14-protocol-in-template.mm8 template <typename Functor> void F(Functor functor) {}
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dtypo-correction-cxx11.cpp30 auto Functor = [x]() {}; in f() local
31 long Alignment = __alignof__(Functor); in f()
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dmicrosoft-abi-member-pointers.cpp8 struct Functor { struct
16 class SimpleDerivedFunctor : public Functor<SimpleDerivedFunctor<SomeType>> {};
27 : public Functor<DerivedFunctor<void>> {
45 : public Functor<MultiplyDerivedFunctor<void>>,
62 : public Functor<SomeType>,
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A Dedit_distance.h45 template <typename T, typename Functor>
47 Functor Map, bool AllowReplacements = true,
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dmember-function-template.cpp53 struct Functor { struct
60 void test_Functor(Functor f) { in test_Functor() argument
H A Dinstantiate-local-class.cpp83 struct Functor { in doIt() struct
88 forEach(Functor()); in doIt()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseTransparentFunctorsCheck.cpp88 const auto *Functor = Result.Nodes.getNodeAs<TemplateArgument>("Functor"); in check() local
106 Functor->getAsType()->getAsCXXRecordDecl()) in check()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/
H A Dranges.copy_if.pass.cpp33 struct Functor { struct
37 template <class In, class Out = In, class Sent = sentinel_wrapper<In>, class Func = Functor>
53 template <class Range, class Out, class Func = Functor>
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/performance/
H A Dunnecessary-copy-initialization.cpp598 using Functor = std::function<int()>; typedef
601 Functor Orig; in negativeAliasedStdFunction()
602 Functor Copy = Orig; in negativeAliasedStdFunction()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DSimplifyBooleanExprCheck.cpp342 template <typename Functor>
343 static auto checkSingleStatement(Stmt *S, Functor F) -> decltype(F(S)) { in checkSingleStatement()
514 template <typename Functor>
515 static bool checkEitherSide(const BinaryOperator *BO, Functor Func) { in checkEitherSide()
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DSTLExtrasTest.cpp846 struct Functor : Counted<Moveable, Copyable> { struct
856 auto V = makeVisitor(Functor<true, false>(Copies, Moves, Destructors)); in TEST()
872 Functor<true, false> F(Copies, Moves, Destructors); in TEST()
894 Functor<true, true> F(Copies, Moves, Destructors); in TEST()
/llvm-project-15.0.7/llvm/utils/unittest/googletest/src/
H A Dgtest-internal-inl.h292 template <class Container, typename Functor>
293 void ForEach(const Container& c, Functor functor) { in ForEach()
/llvm-project-15.0.7/llvm/tools/llvm-objcopy/
H A DObjcopyOptions.cpp472 using Functor = std::function<void()>; in parseNewSymbolInfo() typedef
475 static_cast<Functor>( in parseNewSymbolInfo()
476 StringSwitch<Functor>(Flags[I]) in parseNewSymbolInfo()
/llvm-project-15.0.7/libcxx/include/
H A Dthread291 // _Fp = tuple< unique_ptr<__thread_struct>, Functor, Args...>
/llvm-project-15.0.7/mlir/tools/mlir-tblgen/
H A DOpDefinitionsGen.cpp228 template <typename Functor>
229 Formatter(Functor &&func) : func(std::forward<Functor>(func)) {} in Formatter()
/llvm-project-15.0.7/llvm/utils/unittest/googlemock/include/gmock/
H A Dgmock-matchers.h1864 template <typename Functor>
1866 typedef Functor StorageType;
1868 static void CheckIsValid(Functor /* functor */) {}
1871 static auto Invoke(Functor f, const T& arg) -> decltype(f(arg)) {

12