| /llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/refwrap/refwrap.helpers/ |
| H A D | lwg3146.pass.cpp | 25 std::reference_wrapper<int> ri(i); in test() 26 std::reference_wrapper<std::reference_wrapper<int> > rri(ri); in test() 28 ASSERT_SAME_TYPE(decltype(rrj), std::reference_wrapper<std::reference_wrapper<int> >); in test() 33 std::reference_wrapper<int> ri(i); in test() 34 std::reference_wrapper<const std::reference_wrapper<int> > rri(ri); in test() 36 ASSERT_SAME_TYPE(decltype(rrj), std::reference_wrapper<const std::reference_wrapper<int> >); in test() 41 std::reference_wrapper<int> ri(i); in test() 42 std::reference_wrapper<std::reference_wrapper<int> > rri(ri); in test() 44 ASSERT_SAME_TYPE(decltype(rrj), std::reference_wrapper<const std::reference_wrapper<int> >); in test() 50 std::reference_wrapper<const std::reference_wrapper<int> > rri(ri); in test() [all …]
|
| H A D | cref_2.pass.cpp | 29 std::reference_wrapper<const int> r1 = std::cref(i); in test() 30 std::reference_wrapper<const int> r2 = std::cref(r1); in test() 35 std::reference_wrapper<const adl::A> a1 = std::cref(a); in test() 36 std::reference_wrapper<const adl::A> a2 = std::cref(a1); in test()
|
| H A D | ref_2.pass.cpp | 36 std::reference_wrapper<int> r1 = std::ref(i); in test() 37 std::reference_wrapper<int> r2 = std::ref(r1); in test() 42 std::reference_wrapper<adl::A> a1 = std::ref(a); in test() 43 std::reference_wrapper<adl::A> a2 = std::ref(a1); in test()
|
| /llvm-project-15.0.7/libcxx/test/libcxx/utilities/function.objects/refwrap/ |
| H A D | binary.pass.cpp | 58 std::reference_wrapper<functor1> >::value), ""); in main() 60 std::reference_wrapper<functor2> >::value), ""); in main() 62 std::reference_wrapper<functor3> >::value), ""); in main() 64 std::reference_wrapper<functor4> >::value), ""); in main() 66 std::reference_wrapper<C> >::value), ""); in main() 68 std::reference_wrapper<float ()> >::value), ""); in main() 70 std::reference_wrapper<float (int)> >::value), ""); in main() 74 std::reference_wrapper<float(*)()> >::value), ""); in main() 76 std::reference_wrapper<float(*)(int)> >::value), ""); in main() 80 std::reference_wrapper<float(C::*)()> >::value), ""); in main() [all …]
|
| H A D | unary.pass.cpp | 58 std::reference_wrapper<functor1> >::value), ""); in main() 60 std::reference_wrapper<functor2> >::value), ""); in main() 62 std::reference_wrapper<functor3> >::value), ""); in main() 64 std::reference_wrapper<functor4> >::value), ""); in main() 66 std::reference_wrapper<C> >::value), ""); in main() 68 std::reference_wrapper<float(*)()> >::value), ""); in main() 70 std::reference_wrapper<float (int)> >::value), ""); in main() 72 std::reference_wrapper<float (int, int)> >::value), ""); in main() 74 std::reference_wrapper<float(*)(int)> >::value), ""); in main() 78 std::reference_wrapper<float(C::*)()> >::value), ""); in main() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/refwrap/ |
| H A D | weak_result.pass.cpp | 79 static_assert((std::is_same<std::reference_wrapper<functor1>::result_type, in main() 81 static_assert((std::is_same<std::reference_wrapper<functor2>::result_type, in main() 83 static_assert((std::is_same<std::reference_wrapper<functor3>::result_type, in main() 85 static_assert((std::is_same<std::reference_wrapper<void()>::result_type, in main() 87 static_assert((std::is_same<std::reference_wrapper<int*(double*)>::result_type, in main() 89 static_assert((std::is_same<std::reference_wrapper<void(*)()>::result_type, in main() 91 static_assert((std::is_same<std::reference_wrapper<int*(*)(double*)>::result_type, in main() 97 static_assert((std::is_same<std::reference_wrapper<C()>::result_type, in main() 99 static_assert(has_result_type<std::reference_wrapper<functor3> >::value, ""); in main() 100 static_assert(!has_result_type<std::reference_wrapper<functor4> >::value, ""); in main() [all …]
|
| H A D | unwrap_ref_decay.pass.cpp | 47 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() 55 check<std::reference_wrapper<T[3]>, T (&)[3]>(); in main() 56 check<std::reference_wrapper<T[3]>&, T (&)[3]>(); in main() 57 check<std::reference_wrapper<T ()>, T (&)()>(); in main() [all …]
|
| H A D | type.pass.cpp | 24 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()
|
| H A D | binder_typedefs.compile.pass.cpp | 35 static_assert(std::is_same<std::reference_wrapper<int(UnaryFunction::*)()>::result_type, int>::valu… 36 static_assert(std::is_same<std::reference_wrapper<int(UnaryFunction::*)()>::argument_type, UnaryFun… 38 static_assert(std::is_same<std::reference_wrapper<int(BinaryFunction::*)(char)>::result_type, int>:… 39 static_assert(std::is_same<std::reference_wrapper<int(BinaryFunction::*)(char)>::first_argument_typ… 40 static_assert(std::is_same<std::reference_wrapper<int(BinaryFunction::*)(char)>::second_argument_ty… 42 static_assert(std::is_same<std::reference_wrapper<void(*)()>::result_type, void>::value, "");
|
| /llvm-project-15.0.7/libcxx/include/__functional/ |
| H A D | reference_wrapper.h | 26 class _LIBCPP_TEMPLATE_VIS reference_wrapper : public __weak_result_type<_Tp> 40 reference_wrapper(_Up&& __u) _NOEXCEPT_(noexcept(__fun(declval<_Up>()))) { in reference_wrapper() function 62 reference_wrapper(_Tp&) -> reference_wrapper<_Tp>; 67 reference_wrapper<_Tp> 70 return reference_wrapper<_Tp>(__t); in ref() 75 reference_wrapper<_Tp> 76 ref(reference_wrapper<_Tp> __t) _NOEXCEPT in ref() 83 reference_wrapper<const _Tp> 86 return reference_wrapper<const _Tp>(__t); in cref() 91 reference_wrapper<const _Tp> [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
| H A D | reserved-identifier-invert.cpp | 27 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()
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/refwrap/refwrap.invoke/ |
| H A D | invoke.pass.cpp | 49 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() 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() 165 std::reference_wrapper<int A_int_1::*> r1(fp); in test_int_1() 221 std::reference_wrapper<A_void_2> r1(a0); in test_void_2() [all …]
|
| H A D | invoke_int_0.pass.cpp | 42 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()
|
| H A D | invoke_void_0.pass.cpp | 43 std::reference_wrapper<void ()> r1(f_void_0); in test_void_0() 51 std::reference_wrapper<void (*)()> r1(fp); in test_void_0() 59 std::reference_wrapper<A_void_0> r1(a0); in test_void_0()
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/ |
| H A D | type_conv_ctor.pass.cpp | 37 void meow(std::reference_wrapper<int>) {} in meow() 44 std::reference_wrapper<convertible_to_int_ref> r(t); in main() 49 std::reference_wrapper<const convertible_to_int_ref> r(t); in main() 53 using Ref = std::reference_wrapper<int>; in main() 61 extern std::reference_wrapper<int> purr(); in main() 67 std::reference_wrapper ri(i); in main() 68 static_assert((std::is_same<decltype(ri), std::reference_wrapper<int>>::value), "" ); in main() 70 std::reference_wrapper rj(j); in main() 71 static_assert((std::is_same<decltype(rj), std::reference_wrapper<const int>>::value), "" ); in main()
|
| H A D | deduct.pass.cpp | 20 std::reference_wrapper ri(i); in main() 21 static_assert(std::is_same_v<decltype(ri), std::reference_wrapper<int>>); in main() 22 std::reference_wrapper ri2(ri); in main() 23 static_assert(std::is_same_v<decltype(ri2), std::reference_wrapper<int>>); in main() 25 std::reference_wrapper rj(j); in main() 26 static_assert(std::is_same_v<decltype(rj), std::reference_wrapper<const int>>); in main() 27 std::reference_wrapper rj2(rj); in main() 28 static_assert(std::is_same_v<decltype(rj2), std::reference_wrapper<const int>>); in main()
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/ |
| H A D | result_of.pass.cpp | 151 test_result_of<PMS0( std::reference_wrapper<S>), int> (); in main() 152 test_result_of<PMS0(const std::reference_wrapper<S>&), int> (); in main() 153 test_result_of<PMS0( std::reference_wrapper<SD>), int> (); in main() 154 test_result_of<PMS0(const std::reference_wrapper<SD>&), int> (); in main() 163 test_no_result<PMS0(std::reference_wrapper<S const>)>(); in main() 164 test_no_result<PMS0(std::reference_wrapper<ND> )>(); in main() 183 test_no_result<PMS1(std::reference_wrapper<S const>, int)>(); in main() 184 test_no_result<PMS1(std::reference_wrapper<ND>, int)>(); in main() 201 test_no_result<PMS2(std::reference_wrapper<S const>, int, int)>(); in main() 203 test_no_result<PMS2(std::reference_wrapper<ND>, int, int)>(); in main() [all …]
|
| H A D | result_of11.pass.cpp | 110 test_result_of_imp<PMD(std::reference_wrapper<F>), char &>(); in main() 111 test_result_of_imp<PMD(std::reference_wrapper<F const>), const char &>(); in main() 112 test_result_of_imp<PMD(std::reference_wrapper<FD>), char &>(); in main() 113 test_result_of_imp<PMD(std::reference_wrapper<FD const>), const char &>(); in main() 178 test_result_of_imp<int (F::* (std::reference_wrapper<F>)) (), int>(); in main() 179 test_result_of_imp<int (F::* (std::reference_wrapper<const F>)) () const, int>(); in main()
|
| /llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/Inputs/reserved-identifier/system/ |
| H A D | system-header.h | 6 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()
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/refwrap/refwrap.assign/ |
| H A D | copy_assign.pass.cpp | 34 std::reference_wrapper<T> r(t); in test() 36 std::reference_wrapper<T> r2(t2); in test() 47 std::reference_wrapper<void ()> r(f); in test_function() 48 std::reference_wrapper<void ()> r2(g); in test_function() 72 using Ref = std::reference_wrapper<int>; in main()
|
| /llvm-project-15.0.7/flang/runtime/ |
| H A D | io-stmt.h | 213 std::reference_wrapper<NoopStatementState>, 214 std::reference_wrapper< 216 std::reference_wrapper< 220 std::reference_wrapper< 222 std::reference_wrapper< 226 std::reference_wrapper< 228 std::reference_wrapper< 234 std::reference_wrapper< 236 std::reference_wrapper< 238 std::reference_wrapper<InquireUnitState>, [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/func.invoke/ |
| H A D | invoke.pass.cpp | 182 std::reference_wrapper<TestClass> cl(cl_obj); in bullet_one_two_tests() 195 std::reference_wrapper<DerivedFromTestClass> cl(cl_obj); in bullet_one_two_tests() 254 test_b34<int&>(std::reference_wrapper<Fn>(cl)); in bullet_three_four_tests() 255 test_b34<int const&>(std::reference_wrapper<Fn const>(cl)); in bullet_three_four_tests() 256 test_b34<int volatile&>(std::reference_wrapper<Fn volatile>(cl)); in bullet_three_four_tests() 257 test_b34<int const volatile&>(std::reference_wrapper<Fn const volatile>(cl)); in bullet_three_four_tests() 262 test_b34<int&>(std::reference_wrapper<Fn>(cl)); in bullet_three_four_tests() 263 test_b34<int const&>(std::reference_wrapper<Fn const>(cl)); in bullet_three_four_tests() 264 test_b34<int volatile&>(std::reference_wrapper<Fn volatile>(cl)); in bullet_three_four_tests() 265 test_b34<int const volatile&>(std::reference_wrapper<Fn const volatile>(cl)); in bullet_three_four_tests()
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | warn-lifetime-analysis-nocfg.cpp | 220 struct reference_wrapper { struct 222 reference_wrapper(U &&); 226 reference_wrapper<T> ref(T& t) noexcept; 349 std::reference_wrapper<int> danglingPtrFromNonOwnerLocal() { in danglingPtrFromNonOwnerLocal() 354 std::reference_wrapper<int> danglingPtrFromNonOwnerLocal2() { in danglingPtrFromNonOwnerLocal2() 359 std::reference_wrapper<int> danglingPtrFromNonOwnerLocal3() { in danglingPtrFromNonOwnerLocal3() 361 return std::reference_wrapper<int>(i); // TODO in danglingPtrFromNonOwnerLocal3() 364 std::reference_wrapper<Unannotated> danglingPtrFromNonOwnerLocal4() { in danglingPtrFromNonOwnerLocal4() 366 return std::reference_wrapper<Unannotated>(i); // TODO in danglingPtrFromNonOwnerLocal4() 369 std::reference_wrapper<Unannotated> danglingPtrFromNonOwnerLocal5() { in danglingPtrFromNonOwnerLocal5()
|
| /llvm-project-15.0.7/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/ |
| H A D | scripted_crashlog.ips | 138 …1::reference_wrapper<int>>(fp0))) std::__1::__invoke<void (*)(int&), std::__1::reference_wrapper<i… 146 …reference_wrapper<int>, 2ul>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::… 154 …ault_delete<std::__1::__thread_struct> >, void (*)(int&), std::__1::reference_wrapper<int> > >(voi… 203 …1::reference_wrapper<int>>(fp0))) std::__1::__invoke<void (*)(int&), std::__1::reference_wrapper<i… 211 …reference_wrapper<int>, 2ul>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::… 219 …ault_delete<std::__1::__thread_struct> >, void (*)(int&), std::__1::reference_wrapper<int> > >(voi…
|
| /llvm-project-15.0.7/clang/test/CXX/temp/temp.decls/temp.variadic/ |
| H A D | example-bind.cpp | 39 class reference_wrapper { class 43 reference_wrapper(T& t) : ptr(&t) { } in reference_wrapper() function in reference_wrapper 47 template<typename T> reference_wrapper<T> ref(T& t) { in ref() 48 return reference_wrapper<T>(t); in ref() 50 template<typename T> reference_wrapper<const T> cref(const T& t) { in cref() 51 return reference_wrapper<const T>(t); in cref() 99 struct make_tuple_result<reference_wrapper<T> > { 283 inline T& mu(reference_wrapper<T>& bound_arg, const tuple<Args&...>&) { in mu() 307 struct is_reference_wrapper<reference_wrapper<T>> {
|