Home
last modified time | relevance | path

Searched refs:reference_wrapper (Results 1 – 25 of 163) sorted by relevance

1234567

/external/llvm-project/libcxx/test/libcxx/utilities/function.objects/refwrap/
Dbinary.pass.cpp54 std::reference_wrapper<functor1> >::value), ""); in main()
56 std::reference_wrapper<functor2> >::value), ""); in main()
58 std::reference_wrapper<functor3> >::value), ""); in main()
60 std::reference_wrapper<functor4> >::value), ""); in main()
62 std::reference_wrapper<C> >::value), ""); in main()
64 std::reference_wrapper<float ()> >::value), ""); in main()
66 std::reference_wrapper<float (int)> >::value), ""); in main()
68 std::reference_wrapper<float (int, int)> >::value), ""); in main()
70 std::reference_wrapper<float(*)()> >::value), ""); in main()
72 std::reference_wrapper<float(*)(int)> >::value), ""); in main()
[all …]
Dunary.pass.cpp54 std::reference_wrapper<functor1> >::value), ""); in main()
56 std::reference_wrapper<functor2> >::value), ""); in main()
58 std::reference_wrapper<functor3> >::value), ""); in main()
60 std::reference_wrapper<functor4> >::value), ""); in main()
62 std::reference_wrapper<C> >::value), ""); in main()
64 std::reference_wrapper<float(*)()> >::value), ""); in main()
66 std::reference_wrapper<float (int)> >::value), ""); in main()
68 std::reference_wrapper<float (int, int)> >::value), ""); in main()
70 std::reference_wrapper<float(*)(int)> >::value), ""); in main()
72 std::reference_wrapper<float(*)(int, int)> >::value), ""); in main()
[all …]
/external/libcxx/test/libcxx/utilities/function.objects/refwrap/
Dbinary.pass.cpp53 std::reference_wrapper<functor1> >::value), ""); in main()
55 std::reference_wrapper<functor2> >::value), ""); in main()
57 std::reference_wrapper<functor3> >::value), ""); in main()
59 std::reference_wrapper<functor4> >::value), ""); in main()
61 std::reference_wrapper<C> >::value), ""); in main()
63 std::reference_wrapper<float ()> >::value), ""); in main()
65 std::reference_wrapper<float (int)> >::value), ""); in main()
67 std::reference_wrapper<float (int, int)> >::value), ""); in main()
69 std::reference_wrapper<float(*)()> >::value), ""); in main()
71 std::reference_wrapper<float(*)(int)> >::value), ""); in main()
[all …]
Dunary.pass.cpp53 std::reference_wrapper<functor1> >::value), ""); in main()
55 std::reference_wrapper<functor2> >::value), ""); in main()
57 std::reference_wrapper<functor3> >::value), ""); in main()
59 std::reference_wrapper<functor4> >::value), ""); in main()
61 std::reference_wrapper<C> >::value), ""); in main()
63 std::reference_wrapper<float(*)()> >::value), ""); in main()
65 std::reference_wrapper<float (int)> >::value), ""); in main()
67 std::reference_wrapper<float (int, int)> >::value), ""); in main()
69 std::reference_wrapper<float(*)(int)> >::value), ""); in main()
71 std::reference_wrapper<float(*)(int, int)> >::value), ""); in main()
[all …]
/external/llvm-project/libcxx/test/std/utilities/function.objects/refwrap/
Dweak_result.pass.cpp77 static_assert((std::is_same<std::reference_wrapper<functor1>::result_type, in main()
79 static_assert((std::is_same<std::reference_wrapper<functor2>::result_type, in main()
81 static_assert((std::is_same<std::reference_wrapper<functor3>::result_type, in main()
83 static_assert((std::is_same<std::reference_wrapper<void()>::result_type, in main()
85 static_assert((std::is_same<std::reference_wrapper<int*(double*)>::result_type, in main()
87 static_assert((std::is_same<std::reference_wrapper<void(*)()>::result_type, in main()
89 static_assert((std::is_same<std::reference_wrapper<int*(*)(double*)>::result_type, in main()
91 static_assert((std::is_same<std::reference_wrapper<int*(C::*)(double*)>::result_type, in main()
93 …static_assert((std::is_same<std::reference_wrapper<int (C::*)(double*) const volatile>::result_typ… in main()
95 static_assert((std::is_same<std::reference_wrapper<C()>::result_type, in main()
[all …]
Dunwrap_ref_decay.pass.cpp47 check<std::reference_wrapper<T>, T&>(); in main()
48 check<std::reference_wrapper<T>&, T&>(); in main()
49 check<std::reference_wrapper<T const>, T const&>(); in main()
50 check<std::reference_wrapper<T const>&, T const&>(); in main()
51 check<std::reference_wrapper<T*>, T*&>(); in main()
52 check<std::reference_wrapper<T*>&, T*&>(); in main()
53 check<std::reference_wrapper<T const*>, T const*&>(); in main()
54 check<std::reference_wrapper<T const*>&, T const*&>(); in main()
55 check<std::reference_wrapper<T[3]>, T (&)[3]>(); in main()
56 check<std::reference_wrapper<T[3]>&, T (&)[3]>(); in main()
[all …]
Dtype.pass.cpp24 static_assert((std::is_same<std::reference_wrapper<C>::type, in main()
26 static_assert((std::is_same<std::reference_wrapper<void ()>::type, in main()
28 static_assert((std::is_same<std::reference_wrapper<int* (double*)>::type, in main()
30 static_assert((std::is_same<std::reference_wrapper<void(*)()>::type, in main()
32 static_assert((std::is_same<std::reference_wrapper<int*(*)(double*)>::type, in main()
34 static_assert((std::is_same<std::reference_wrapper<int*(C::*)(double*)>::type, in main()
36 static_assert((std::is_same<std::reference_wrapper<int (C::*)(double*) const volatile>::type, in main()
/external/libcxx/test/std/utilities/function.objects/refwrap/
Dweak_result.pass.cpp74 static_assert((std::is_same<std::reference_wrapper<functor1>::result_type, in main()
76 static_assert((std::is_same<std::reference_wrapper<functor2>::result_type, in main()
78 static_assert((std::is_same<std::reference_wrapper<functor3>::result_type, in main()
80 static_assert((std::is_same<std::reference_wrapper<void()>::result_type, in main()
82 static_assert((std::is_same<std::reference_wrapper<int*(double*)>::result_type, in main()
84 static_assert((std::is_same<std::reference_wrapper<void(*)()>::result_type, in main()
86 static_assert((std::is_same<std::reference_wrapper<int*(*)(double*)>::result_type, in main()
88 static_assert((std::is_same<std::reference_wrapper<int*(C::*)(double*)>::result_type, in main()
90 …static_assert((std::is_same<std::reference_wrapper<int (C::*)(double*) const volatile>::result_typ… in main()
92 static_assert((std::is_same<std::reference_wrapper<C()>::result_type, in main()
[all …]
Dunwrap_ref_decay.pass.cpp46 check<std::reference_wrapper<T>, T&>(); in main()
47 check<std::reference_wrapper<T>&, T&>(); in main()
48 check<std::reference_wrapper<T const>, T const&>(); in main()
49 check<std::reference_wrapper<T const>&, T const&>(); in main()
50 check<std::reference_wrapper<T*>, T*&>(); in main()
51 check<std::reference_wrapper<T*>&, T*&>(); in main()
52 check<std::reference_wrapper<T const*>, T const*&>(); in main()
53 check<std::reference_wrapper<T const*>&, T const*&>(); in main()
54 check<std::reference_wrapper<T[3]>, T (&)[3]>(); in main()
55 check<std::reference_wrapper<T[3]>&, T (&)[3]>(); in main()
[all …]
Dtype.pass.cpp23 static_assert((std::is_same<std::reference_wrapper<C>::type, in main()
25 static_assert((std::is_same<std::reference_wrapper<void ()>::type, in main()
27 static_assert((std::is_same<std::reference_wrapper<int* (double*)>::type, in main()
29 static_assert((std::is_same<std::reference_wrapper<void(*)()>::type, in main()
31 static_assert((std::is_same<std::reference_wrapper<int*(*)(double*)>::type, in main()
33 static_assert((std::is_same<std::reference_wrapper<int*(C::*)(double*)>::type, in main()
35 static_assert((std::is_same<std::reference_wrapper<int (C::*)(double*) const volatile>::type, in main()
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dbugprone-reserved-identifier-invert.cpp27 class reference_wrapper { class
35 reference_wrapper(type &__f) in reference_wrapper() function in std::reference_wrapper
43 inline reference_wrapper<_Tp>
45 return reference_wrapper<_Tp>(__t); in ref()
49 inline reference_wrapper<_Tp>
50 ref(reference_wrapper<_Tp> __t) noexcept { in ref()
57 inline reference_wrapper<const Up>
61 return reference_wrapper<const Up>(u); in cref()
65 inline reference_wrapper<_Tp>
66 cref(reference_wrapper<const _Tp> __t) noexcept { in cref()
/external/llvm-project/libcxx/test/std/utilities/function.objects/refwrap/refwrap.invoke/
Dinvoke.pass.cpp49 std::reference_wrapper<void (int)> r1(f_void_1); in test_void_1()
58 std::reference_wrapper<void (*)(int)> r1(fp); in test_void_1()
67 std::reference_wrapper<A_void_1> r1(a0); in test_void_1()
76 std::reference_wrapper<void (A_void_1::*)()> r1(fp); in test_void_1()
89 std::reference_wrapper<void (A_void_1::*)() const> r1(fp); in test_void_1()
126 std::reference_wrapper<int (int)> r1(f_int_1); in test_int_1()
133 std::reference_wrapper<int (*)(int)> r1(fp); in test_int_1()
140 std::reference_wrapper<A_int_1> r1(a0); in test_int_1()
147 std::reference_wrapper<int (A_int_1::*)()> r1(fp); in test_int_1()
156 std::reference_wrapper<int (A_int_1::*)() const> r1(fp); in test_int_1()
[all …]
Dinvoke_int_0.pass.cpp42 std::reference_wrapper<int ()> r1(f_int_0); in test_int_0()
48 std::reference_wrapper<int (*)()> r1(fp); in test_int_0()
54 std::reference_wrapper<A_int_0> r1(a0); in test_int_0()
/external/libcxx/test/std/utilities/function.objects/refwrap/refwrap.invoke/
Dinvoke.pass.cpp48 std::reference_wrapper<void (int)> r1(f_void_1); in test_void_1()
57 std::reference_wrapper<void (*)(int)> r1(fp); in test_void_1()
66 std::reference_wrapper<A_void_1> r1(a0); in test_void_1()
75 std::reference_wrapper<void (A_void_1::*)()> r1(fp); in test_void_1()
88 std::reference_wrapper<void (A_void_1::*)() const> r1(fp); in test_void_1()
125 std::reference_wrapper<int (int)> r1(f_int_1); in test_int_1()
132 std::reference_wrapper<int (*)(int)> r1(fp); in test_int_1()
139 std::reference_wrapper<A_int_1> r1(a0); in test_int_1()
146 std::reference_wrapper<int (A_int_1::*)()> r1(fp); in test_int_1()
155 std::reference_wrapper<int (A_int_1::*)() const> r1(fp); in test_int_1()
[all …]
/external/llvm-project/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/
Dresult_of.pass.cpp147 test_result_of<PMS0( std::reference_wrapper<S>), int> (); in main()
148 test_result_of<PMS0(const std::reference_wrapper<S>&), int> (); in main()
149 test_result_of<PMS0( std::reference_wrapper<SD>), int> (); in main()
150 test_result_of<PMS0(const std::reference_wrapper<SD>&), int> (); in main()
159 test_no_result<PMS0(std::reference_wrapper<S const>)>(); in main()
160 test_no_result<PMS0(std::reference_wrapper<ND> )>(); in main()
169 test_result_of<PMS1(std::reference_wrapper<S>, int), int*> (); in main()
170 test_result_of<PMS1(const std::reference_wrapper<S>&, int), int*> (); in main()
171 test_result_of<PMS1(std::reference_wrapper<SD>, int), int*> (); in main()
172 test_result_of<PMS1(const std::reference_wrapper<SD>&, int), int*> (); in main()
[all …]
/external/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/
Dresult_of.pass.cpp148 test_result_of<PMS0( std::reference_wrapper<S>), int> (); in main()
149 test_result_of<PMS0(const std::reference_wrapper<S>&), int> (); in main()
150 test_result_of<PMS0( std::reference_wrapper<SD>), int> (); in main()
151 test_result_of<PMS0(const std::reference_wrapper<SD>&), int> (); in main()
160 test_no_result<PMS0(std::reference_wrapper<S const>)>(); in main()
161 test_no_result<PMS0(std::reference_wrapper<ND> )>(); in main()
170 test_result_of<PMS1(std::reference_wrapper<S>, int), int*> (); in main()
171 test_result_of<PMS1(const std::reference_wrapper<S>&, int), int*> (); in main()
172 test_result_of<PMS1(std::reference_wrapper<SD>, int), int*> (); in main()
173 test_result_of<PMS1(const std::reference_wrapper<SD>&, int), int*> (); in main()
[all …]
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/Inputs/bugprone-reserved-identifier/system/
Dsystem-header.h6 class reference_wrapper {
14 reference_wrapper(type &__f) in reference_wrapper() function
22 inline reference_wrapper<_Tp>
24 return reference_wrapper<_Tp>(__t); in ref()
28 inline reference_wrapper<_Tp>
29 ref(reference_wrapper<_Tp> __t) noexcept { in ref()
/external/llvm-project/libcxx/test/std/utilities/function.objects/refwrap/refwrap.helpers/
Dcref_2.pass.cpp28 std::reference_wrapper<const int> r1 = std::cref(i); in main()
29 std::reference_wrapper<const int> r2 = std::cref(r1); in main()
34 std::reference_wrapper<const adl::A> a1 = std::cref(a); in main()
35 std::reference_wrapper<const adl::A> a2 = std::cref(a1); in main()
Dref_2.pass.cpp36 std::reference_wrapper<int> r1 = std::ref(i); in main()
37 std::reference_wrapper<int> r2 = std::ref(r1); in main()
42 std::reference_wrapper<adl::A> a1 = std::ref(a); in main()
43 std::reference_wrapper<adl::A> a2 = std::ref(a1); in main()
/external/llvm-project/flang/runtime/
Dio-stmt.h110 std::variant<std::reference_wrapper<OpenStatementState>,
111 std::reference_wrapper<CloseStatementState>,
112 std::reference_wrapper<NoopCloseStatementState>,
113 std::reference_wrapper<
115 std::reference_wrapper<
117 std::reference_wrapper<InternalListIoStatementState<Direction::Output>>,
118 std::reference_wrapper<InternalListIoStatementState<Direction::Input>>,
119 std::reference_wrapper<
121 std::reference_wrapper<
123 std::reference_wrapper<ExternalListIoStatementState<Direction::Output>>,
[all …]
/external/libcxx/test/std/utilities/function.objects/refwrap/refwrap.assign/
Dcopy_assign.pass.cpp27 std::reference_wrapper<T> r(t); in test()
29 std::reference_wrapper<T> r2(t2); in test()
40 std::reference_wrapper<void ()> r(f); in test_function()
41 std::reference_wrapper<void ()> r2(g); in test_function()
/external/llvm-project/libcxx/test/std/utilities/function.objects/refwrap/refwrap.assign/
Dcopy_assign.pass.cpp28 std::reference_wrapper<T> r(t); in test()
30 std::reference_wrapper<T> r2(t2); in test()
41 std::reference_wrapper<void ()> r(f); in test_function()
42 std::reference_wrapper<void ()> r2(g); in test_function()
/external/llvm-project/libcxx/test/std/utilities/function.objects/func.invoke/
Dinvoke.pass.cpp179 std::reference_wrapper<TestClass> cl(cl_obj); in bullet_one_two_tests()
192 std::reference_wrapper<DerivedFromTestClass> cl(cl_obj); in bullet_one_two_tests()
251 test_b34<int&>(std::reference_wrapper<Fn>(cl)); in bullet_three_four_tests()
252 test_b34<int const&>(std::reference_wrapper<Fn const>(cl)); in bullet_three_four_tests()
253 test_b34<int volatile&>(std::reference_wrapper<Fn volatile>(cl)); in bullet_three_four_tests()
254 test_b34<int const volatile&>(std::reference_wrapper<Fn const volatile>(cl)); in bullet_three_four_tests()
259 test_b34<int&>(std::reference_wrapper<Fn>(cl)); in bullet_three_four_tests()
260 test_b34<int const&>(std::reference_wrapper<Fn const>(cl)); in bullet_three_four_tests()
261 test_b34<int volatile&>(std::reference_wrapper<Fn volatile>(cl)); in bullet_three_four_tests()
262 test_b34<int const volatile&>(std::reference_wrapper<Fn const volatile>(cl)); in bullet_three_four_tests()
/external/libcxx/test/std/utilities/function.objects/func.invoke/
Dinvoke.pass.cpp177 std::reference_wrapper<TestClass> cl(cl_obj); in bullet_one_two_tests()
190 std::reference_wrapper<DerivedFromTestClass> cl(cl_obj); in bullet_one_two_tests()
249 test_b34<int&>(std::reference_wrapper<Fn>(cl)); in bullet_three_four_tests()
250 test_b34<int const&>(std::reference_wrapper<Fn const>(cl)); in bullet_three_four_tests()
251 test_b34<int volatile&>(std::reference_wrapper<Fn volatile>(cl)); in bullet_three_four_tests()
252 test_b34<int const volatile&>(std::reference_wrapper<Fn const volatile>(cl)); in bullet_three_four_tests()
257 test_b34<int&>(std::reference_wrapper<Fn>(cl)); in bullet_three_four_tests()
258 test_b34<int const&>(std::reference_wrapper<Fn const>(cl)); in bullet_three_four_tests()
259 test_b34<int volatile&>(std::reference_wrapper<Fn volatile>(cl)); in bullet_three_four_tests()
260 test_b34<int const volatile&>(std::reference_wrapper<Fn const volatile>(cl)); in bullet_three_four_tests()
/external/llvm-project/clang/test/Sema/
Dwarn-lifetime-analysis-nocfg.cpp210 struct reference_wrapper { struct
212 reference_wrapper(U &&);
216 reference_wrapper<T> ref(T& t) noexcept;
339 std::reference_wrapper<int> danglingPtrFromNonOwnerLocal() { in danglingPtrFromNonOwnerLocal()
344 std::reference_wrapper<int> danglingPtrFromNonOwnerLocal2() { in danglingPtrFromNonOwnerLocal2()
349 std::reference_wrapper<int> danglingPtrFromNonOwnerLocal3() { in danglingPtrFromNonOwnerLocal3()
351 return std::reference_wrapper<int>(i); // TODO in danglingPtrFromNonOwnerLocal3()
354 std::reference_wrapper<Unannotated> danglingPtrFromNonOwnerLocal4() { in danglingPtrFromNonOwnerLocal4()
356 return std::reference_wrapper<Unannotated>(i); // TODO in danglingPtrFromNonOwnerLocal4()
359 std::reference_wrapper<Unannotated> danglingPtrFromNonOwnerLocal5() { in danglingPtrFromNonOwnerLocal5()

1234567