Searched refs:A_int_1 (Results 1 – 6 of 6) sorted by relevance
/external/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.bind/ |
D | invoke_rvalue.pass.cpp | 135 struct A_int_1 struct 137 A_int_1() : data_(5) {} in A_int_1() function 165 assert(std::bind(A_int_1(), _1)(4) == 3); in test_int_1() argument 166 assert(std::bind(A_int_1(), 4)() == 3); in test_int_1() 170 assert(std::bind(&A_int_1::mem1, _1)(A_int_1()) == 3); in test_int_1() 171 assert(std::bind(&A_int_1::mem1, A_int_1())() == 3); in test_int_1() 172 A_int_1 a; in test_int_1() 173 assert(std::bind(&A_int_1::mem1, _1)(&a) == 3); in test_int_1() 174 assert(std::bind(&A_int_1::mem1, &a)() == 3); in test_int_1() 178 assert(std::bind(&A_int_1::mem2, _1)(A_int_1()) == 4); in test_int_1() [all …]
|
D | invoke_lvalue.pass.cpp | 145 struct A_int_1 struct 147 A_int_1() : data_(5) {} in A_int_1() function 178 assert(std::bind(A_int_1(), _1)(i) == 3); in test_int_1() argument 179 assert(std::bind(A_int_1(), i)() == 3); in test_int_1() 183 A_int_1 a; in test_int_1() 184 assert(std::bind(&A_int_1::mem1, _1)(a) == 3); in test_int_1() 185 assert(std::bind(&A_int_1::mem1, a)() == 3); in test_int_1() 186 A_int_1* ap = &a; in test_int_1() 187 assert(std::bind(&A_int_1::mem1, _1)(ap) == 3); in test_int_1() 188 assert(std::bind(&A_int_1::mem1, ap)() == 3); in test_int_1() [all …]
|
/external/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.inv/ |
D | invoke.pass.cpp | 106 struct A_int_1 struct 108 A_int_1() : data_(5) {} in A_int_1() argument 137 A_int_1 a0; in test_int_1() argument 144 int (A_int_1::*fp)() = &A_int_1::mem1; in test_int_1() 145 std::function<int (A_int_1)> r1(fp); in test_int_1() 146 A_int_1 a; in test_int_1() 148 std::function<int (A_int_1*)> r2(fp); in test_int_1() 149 A_int_1* ap = &a; in test_int_1() 154 int (A_int_1::*fp)() const = &A_int_1::mem2; in test_int_1() 155 std::function<int (A_int_1)> r1(fp); in test_int_1() [all …]
|
D | invoke.fail.cpp | 21 struct A_int_1 struct 23 A_int_1() : data_(5) {} in A_int_1() function 33 int A_int_1::*fp = &A_int_1::data_; in test_int_1() argument 34 A_int_1 a; in test_int_1() 35 std::function<int& (const A_int_1*)> r2(fp); in test_int_1() 36 const A_int_1* ap = &a; in test_int_1()
|
/external/libcxx/test/std/utilities/function.objects/refwrap/refwrap.invoke/ |
D | invoke.pass.cpp | 107 struct A_int_1 struct 109 A_int_1() : data_(5) {} in A_int_1() argument 138 A_int_1 a0; in test_int_1() argument 139 std::reference_wrapper<A_int_1> r1(a0); in test_int_1() 145 int (A_int_1::*fp)() = &A_int_1::mem1; in test_int_1() 146 std::reference_wrapper<int (A_int_1::*)()> r1(fp); in test_int_1() 147 A_int_1 a; in test_int_1() 149 A_int_1* ap = &a; in test_int_1() 154 int (A_int_1::*fp)() const = &A_int_1::mem2; in test_int_1() 155 std::reference_wrapper<int (A_int_1::*)() const> r1(fp); in test_int_1() [all …]
|
D | invoke.fail.cpp | 24 struct A_int_1 struct 26 A_int_1() : data_(5) {} in A_int_1() function 36 int A_int_1::*fp = &A_int_1::data_; in test_int_1() argument 37 std::reference_wrapper<int A_int_1::*> r1(fp); in test_int_1() 38 A_int_1 a; in test_int_1() 42 const A_int_1* ap = &a; in test_int_1()
|