/external/libcxx/test/std/utilities/function.objects/refwrap/ |
D | binary.pass.cpp | 53 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 …]
|
D | weak_result.pass.cpp | 59 static_assert((std::is_same<std::reference_wrapper<functor1>::result_type, in main() 61 static_assert((std::is_same<std::reference_wrapper<functor2>::result_type, in main() 63 static_assert((std::is_same<std::reference_wrapper<functor3>::result_type, in main() 65 static_assert((std::is_same<std::reference_wrapper<void()>::result_type, in main() 67 static_assert((std::is_same<std::reference_wrapper<int*(double*)>::result_type, in main() 69 static_assert((std::is_same<std::reference_wrapper<void(*)()>::result_type, in main() 71 static_assert((std::is_same<std::reference_wrapper<int*(*)(double*)>::result_type, in main() 73 static_assert((std::is_same<std::reference_wrapper<int*(C::*)(double*)>::result_type, in main() 75 …static_assert((std::is_same<std::reference_wrapper<int (C::*)(double*) const volatile>::result_typ… in main() 77 static_assert((std::is_same<std::reference_wrapper<C()>::result_type, in main() [all …]
|
D | unary.pass.cpp | 53 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 …]
|
D | type.pass.cpp | 23 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/libcxx/test/std/utilities/function.objects/refwrap/refwrap.invoke/ |
D | invoke.pass.cpp | 48 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 …]
|
D | invoke_int_0.pass.cpp | 41 std::reference_wrapper<int ()> r1(f_int_0); in test_int_0() 47 std::reference_wrapper<int (*)()> r1(fp); in test_int_0() 53 std::reference_wrapper<A_int_0> r1(a0); in test_int_0()
|
D | invoke_void_0.pass.cpp | 42 std::reference_wrapper<void ()> r1(f_void_0); in test_void_0() 50 std::reference_wrapper<void (*)()> r1(fp); in test_void_0() 58 std::reference_wrapper<A_void_0> r1(a0); in test_void_0()
|
/external/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/ |
D | result_of.pass.cpp | 111 test_result_of<PMS0( std::reference_wrapper<S>), int> (); in main() 112 test_result_of<PMS0(const std::reference_wrapper<S>&), int> (); in main() 113 test_result_of<PMS0( std::reference_wrapper<SD>), int> (); in main() 114 test_result_of<PMS0(const std::reference_wrapper<SD>&), int> (); in main() 123 test_no_result<PMS0(std::reference_wrapper<S const>)>(); in main() 124 test_no_result<PMS0(std::reference_wrapper<ND> )>(); in main() 133 test_result_of<PMS1(std::reference_wrapper<S>, int), int*> (); in main() 134 test_result_of<PMS1(const std::reference_wrapper<S>&, int), int*> (); in main() 135 test_result_of<PMS1(std::reference_wrapper<SD>, int), int*> (); in main() 136 test_result_of<PMS1(const std::reference_wrapper<SD>&, int), int*> (); in main() [all …]
|
D | result_of11.pass.cpp | 82 test_result_of_imp<PMD(std::reference_wrapper<F>), char &>(); in main() 83 test_result_of_imp<PMD(std::reference_wrapper<F const>), const char &>(); in main() 84 test_result_of_imp<PMD(std::reference_wrapper<FD>), char &>(); in main() 85 test_result_of_imp<PMD(std::reference_wrapper<FD const>), const char &>(); in main() 150 test_result_of_imp<int (F::* (std::reference_wrapper<F>)) (), int>(); in main() 151 test_result_of_imp<int (F::* (std::reference_wrapper<const F>)) () const, int>(); in main()
|
/external/libcxx/test/std/utilities/function.objects/refwrap/refwrap.assign/ |
D | copy_assign.pass.cpp | 28 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/libcxx/test/std/utilities/function.objects/func.invoke/ |
D | invoke.pass.cpp | 177 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/clang/test/CXX/temp/temp.decls/temp.variadic/ |
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>> {
|
D | example-tuple.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() 119 struct make_tuple_result<reference_wrapper<T> > {
|
/external/libcxx/test/std/utilities/meta/meta.rel/ |
D | is_callable.pass.cpp | 58 using T = std::reference_wrapper<Tag>; in main() 59 using DT = std::reference_wrapper<DerFromTag>; in main() 60 using CT = std::reference_wrapper<const Tag>; in main() 96 using T = std::reference_wrapper<Tag>; in main() 97 using DT = std::reference_wrapper<DerFromTag>; in main() 98 using CT = std::reference_wrapper<const Tag>; in main()
|
/external/libcxx/test/std/utilities/function.objects/refwrap/refwrap.helpers/ |
D | cref_2.pass.cpp | 22 std::reference_wrapper<const int> r1 = std::cref(i); in main() 23 std::reference_wrapper<const int> r2 = std::cref(r1); in main()
|
D | ref_2.pass.cpp | 30 std::reference_wrapper<int> r1 = std::ref(i); in main() 31 std::reference_wrapper<int> r2 = std::ref(r1); in main()
|
D | ref_1.fail.cpp | 28 std::reference_wrapper<const A> r = std::ref(source()); in main()
|
/external/libcxx/test/libcxx/utilities/function.objects/func.require/ |
D | bullet_1_2_3.pass.cpp | 158 std::reference_wrapper<T> rref(obj); in doTest() 159 std::reference_wrapper<D> drref(der); in doTest() 212 void runTest(const std::reference_wrapper<T>& obj) { in runTest() 251 struct DerivedFromRefWrap : public std::reference_wrapper<Tp> { 252 DerivedFromRefWrap(Tp& tp) : std::reference_wrapper<Tp>(tp) {} in DerivedFromRefWrap() 258 std::reference_wrapper<int> r(x); in test_derived_from_ref_wrap() 259 std::reference_wrapper<std::reference_wrapper<int>> r2(r); in test_derived_from_ref_wrap() 261 auto get_fn = &std::reference_wrapper<int>::get; in test_derived_from_ref_wrap()
|
D | invoke_helpers.h | 90 std::reference_wrapper<const Tp> makeConst(std::reference_wrapper<Tp>& ref) { in makeConst() 91 return std::reference_wrapper<const Tp>(ref.get()); in makeConst() 101 std::reference_wrapper<volatile Tp> makeVolatile(std::reference_wrapper<Tp>& ref) { in makeVolatile() 102 return std::reference_wrapper<volatile Tp>(ref.get()); in makeVolatile() 112 std::reference_wrapper<const volatile Tp> makeCV(std::reference_wrapper<Tp>& ref) { in makeCV() 113 return std::reference_wrapper<const volatile Tp>(ref.get()); in makeCV()
|
/external/libcxx/test/std/utilities/function.objects/refwrap/refwrap.const/ |
D | copy_ctor.pass.cpp | 28 std::reference_wrapper<T> r(t); in test() 29 std::reference_wrapper<T> r2 = r; in test()
|
D | type_ctor.fail.cpp | 23 std::reference_wrapper<const int> r(3); in main()
|
/external/libbrillo/brillo/ |
D | any_unittest.cc | 196 EXPECT_EQ(5, val.Get<std::reference_wrapper<int>>().get()); in TEST() 197 val.Get<std::reference_wrapper<int>>().get() = 7; in TEST() 198 EXPECT_EQ(7, val.Get<std::reference_wrapper<int>>().get()); in TEST() 202 EXPECT_EQ(7, val2.Get<std::reference_wrapper<const int>>().get()); in TEST() 205 EXPECT_EQ(10, val.Get<std::reference_wrapper<int>>().get()); in TEST() 206 EXPECT_EQ(10, val2.Get<std::reference_wrapper<const int>>().get()); in TEST()
|
/external/libcxx/test/std/iterators/predef.iterators/move.iterators/move.iterator/ |
D | types.pass.cpp | 73 typedef DummyIt<int, std::reference_wrapper<int> > T; in main() 75 static_assert(std::is_same<It::reference, std::reference_wrapper<int> >::value, ""); in main()
|
/external/libcxx/include/ |
D | __functional_base | 379 class _LIBCPP_TEMPLATE_VIS reference_wrapper 390 _LIBCPP_INLINE_VISIBILITY reference_wrapper(type& __f) _NOEXCEPT 393 private: reference_wrapper(type&&); public: // = delete; // do not bind to temps 519 reference_wrapper<_Tp> 522 return reference_wrapper<_Tp>(__t); 527 reference_wrapper<_Tp> 528 ref(reference_wrapper<_Tp> __t) _NOEXCEPT 535 reference_wrapper<const _Tp> 538 return reference_wrapper<const _Tp>(__t); 543 reference_wrapper<const _Tp> [all …]
|
/external/libcxx/test/libcxx/utilities/tuple/tuple.tuple/ |
D | diagnose_reference_binding.pass.cpp | 24 static_assert(std::is_constructible<int&, std::reference_wrapper<int>>::value, ""); 25 static_assert(std::is_constructible<int const&, std::reference_wrapper<int>>::value, "");
|