Searched refs:reference_wrapper (Results 1 - 22 of 22) sorted by relevance

/external/libcxx/test/utilities/function.objects/refwrap/refwrap.const/
H A Dtype_ctor.fail.cpp12 // reference_wrapper
14 // reference_wrapper(T&&) = delete;
21 std::reference_wrapper<const int> r(3);
H A Dcopy_ctor.pass.cpp12 // reference_wrapper
14 // reference_wrapper(const reference_wrapper<T>& x);
28 std::reference_wrapper<T> r(t);
29 std::reference_wrapper<T> r2 = r;
H A Dtype_ctor.pass.cpp12 // reference_wrapper
14 // reference_wrapper(T& t);
28 std::reference_wrapper<T> r(t);
/external/libcxx/test/utilities/function.objects/refwrap/refwrap.helpers/
H A Dcref_2.pass.cpp12 // reference_wrapper
14 // template <ObjectType T> reference_wrapper<const T> cref(reference_wrapper<T> t);
22 std::reference_wrapper<const int> r1 = std::cref(i);
23 std::reference_wrapper<const int> r2 = std::cref(r1);
H A Dref_2.pass.cpp12 // reference_wrapper
14 // template <ObjectType T> reference_wrapper<T> ref(reference_wrapper<T>t);
22 std::reference_wrapper<int> r1 = std::ref(i);
23 std::reference_wrapper<int> r2 = std::ref(r1);
H A Dcref_1.pass.cpp12 // reference_wrapper
14 // template <ObjectType T> reference_wrapper<const T> cref(const T& t);
22 std::reference_wrapper<const int> r = std::cref(i);
H A Dref_1.fail.cpp12 // reference_wrapper
14 // template <ObjectType T> reference_wrapper<T> ref(T& t);
26 std::reference_wrapper<const A> r = std::ref(source());
H A Dref_1.pass.cpp12 // reference_wrapper
14 // template <ObjectType T> reference_wrapper<T> ref(T& t);
22 std::reference_wrapper<int> r = std::ref(i);
/external/libcxx/test/utilities/function.objects/refwrap/
H A Dtype.pass.cpp12 // reference_wrapper
23 static_assert((std::is_same<std::reference_wrapper<C>::type,
25 static_assert((std::is_same<std::reference_wrapper<void ()>::type,
27 static_assert((std::is_same<std::reference_wrapper<int* (double*)>::type,
29 static_assert((std::is_same<std::reference_wrapper<void(*)()>::type,
31 static_assert((std::is_same<std::reference_wrapper<int*(*)(double*)>::type,
33 static_assert((std::is_same<std::reference_wrapper<int*(C::*)(double*)>::type,
35 static_assert((std::is_same<std::reference_wrapper<int (C::*)(double*) const volatile>::type,
H A Dbinary.pass.cpp12 // reference_wrapper
53 std::reference_wrapper<functor1> >::value), "");
55 std::reference_wrapper<functor2> >::value), "");
57 std::reference_wrapper<functor3> >::value), "");
59 std::reference_wrapper<functor4> >::value), "");
61 std::reference_wrapper<C> >::value), "");
63 std::reference_wrapper<float ()> >::value), "");
65 std::reference_wrapper<float (int)> >::value), "");
67 std::reference_wrapper<float (int, int)> >::value), "");
69 std::reference_wrapper<floa
[all...]
H A Dunary.pass.cpp12 // reference_wrapper
53 std::reference_wrapper<functor1> >::value), "");
55 std::reference_wrapper<functor2> >::value), "");
57 std::reference_wrapper<functor3> >::value), "");
59 std::reference_wrapper<functor4> >::value), "");
61 std::reference_wrapper<C> >::value), "");
63 std::reference_wrapper<float(*)()> >::value), "");
65 std::reference_wrapper<float (int)> >::value), "");
67 std::reference_wrapper<float (int, int)> >::value), "");
69 std::reference_wrapper<floa
[all...]
H A Dweak_result.pass.cpp12 // reference_wrapper
59 static_assert((std::is_same<std::reference_wrapper<functor1>::result_type,
61 static_assert((std::is_same<std::reference_wrapper<functor2>::result_type,
63 static_assert((std::is_same<std::reference_wrapper<functor3>::result_type,
65 static_assert((std::is_same<std::reference_wrapper<void()>::result_type,
67 static_assert((std::is_same<std::reference_wrapper<int*(double*)>::result_type,
69 static_assert((std::is_same<std::reference_wrapper<void(*)()>::result_type,
71 static_assert((std::is_same<std::reference_wrapper<int*(*)(double*)>::result_type,
73 static_assert((std::is_same<std::reference_wrapper<int*(C::*)(double*)>::result_type,
75 static_assert((std::is_same<std::reference_wrapper<in
[all...]
/external/libcxx/test/utilities/function.objects/refwrap/refwrap.invoke/
H A Dinvoke_int_0.pass.cpp12 // reference_wrapper
41 std::reference_wrapper<int ()> r1(f_int_0);
47 std::reference_wrapper<int (*)()> r1(fp);
53 std::reference_wrapper<A_int_0> r1(a0);
H A Dinvoke_void_0.pass.cpp12 // reference_wrapper
42 std::reference_wrapper<void ()> r1(f_void_0);
50 std::reference_wrapper<void (*)()> r1(fp);
58 std::reference_wrapper<A_void_0> r1(a0);
H A Dinvoke.pass.cpp12 // reference_wrapper
48 std::reference_wrapper<void (int)> r1(f_void_1);
57 std::reference_wrapper<void (*)(int)> r1(fp);
66 std::reference_wrapper<A_void_1> r1(a0);
75 std::reference_wrapper<void (A_void_1::*)()> r1(fp);
88 std::reference_wrapper<void (A_void_1::*)() const> r1(fp);
125 std::reference_wrapper<int (int)> r1(f_int_1);
132 std::reference_wrapper<int (*)(int)> r1(fp);
139 std::reference_wrapper<A_int_1> r1(a0);
146 std::reference_wrapper<in
[all...]
H A Dinvoke.fail.cpp12 // reference_wrapper
37 std::reference_wrapper<int A_int_1::*> r1(fp);
/external/libcxx/test/utilities/function.objects/refwrap/refwrap.assign/
H A Dcopy_assign.pass.cpp12 // reference_wrapper
14 // reference_wrapper& operator=(const reference_wrapper<T>& x);
28 std::reference_wrapper<T> r(t);
30 std::reference_wrapper<T> r2(t2);
41 std::reference_wrapper<void ()> r(f);
42 std::reference_wrapper<void ()> r2(g);
/external/libcxx/test/utilities/function.objects/refwrap/refwrap.access/
H A Dconversion.pass.cpp12 // reference_wrapper
28 std::reference_wrapper<T> r(t);
/external/stlport/stlport/
H A Dfunctional56 template<class T> class reference_wrapper;
57 template<class T> reference_wrapper<T> const ref(T &);
58 template<class T> inline reference_wrapper<T const> const cref(T const &);
74 using ::boost::reference_wrapper;
/external/stlport/test/unit/
H A Dreference_wrapper_test.cpp29 typedef std::tr1::reference_wrapper<int> rr_type;
60 typedef std::tr1::reference_wrapper<const int> crr_type;
/external/clang/test/CXX/temp/temp.decls/temp.variadic/
H A Dexample-tuple.cpp39 class reference_wrapper { class
43 reference_wrapper(T& t) : ptr(&t) { } function in class:reference_wrapper
47 template<typename T> reference_wrapper<T> ref(T& t) {
48 return reference_wrapper<T>(t);
50 template<typename T> reference_wrapper<const T> cref(const T& t) {
51 return reference_wrapper<const T>(t);
119 struct make_tuple_result<reference_wrapper<T> > {
H A Dexample-bind.cpp39 class reference_wrapper { class
43 reference_wrapper(T& t) : ptr(&t) { } function in class:reference_wrapper
47 template<typename T> reference_wrapper<T> ref(T& t) {
48 return reference_wrapper<T>(t);
50 template<typename T> reference_wrapper<const T> cref(const T& t) {
51 return reference_wrapper<const T>(t);
99 struct make_tuple_result<reference_wrapper<T> > {
283 inline T& mu(reference_wrapper<T>& bound_arg, const tuple<Args&...>&) {
307 struct is_reference_wrapper<reference_wrapper<T>> {

Completed in 2952 milliseconds