Lines Matching refs:A_int_1
147 struct A_int_1
149 A_int_1() : data_(5) {}
180 assert(std::bind(A_int_1(), _1)(i) == 3);
181 assert(std::bind(A_int_1(), i)() == 3);
185 A_int_1 a;
186 assert(std::bind(&A_int_1::mem1, _1)(a) == 3);
187 assert(std::bind(&A_int_1::mem1, a)() == 3);
188 A_int_1* ap = &a;
189 assert(std::bind(&A_int_1::mem1, _1)(ap) == 3);
190 assert(std::bind(&A_int_1::mem1, ap)() == 3);
194 A_int_1 a;
195 assert(std::bind(&A_int_1::mem2, _1)(A_int_1()) == 4);
196 assert(std::bind(&A_int_1::mem2, A_int_1())() == 4);
197 A_int_1* ap = &a;
198 assert(std::bind(&A_int_1::mem2, _1)(ap) == 4);
199 assert(std::bind(&A_int_1::mem2, ap)() == 4);
203 A_int_1 a;
204 assert(std::bind(&A_int_1::data_, _1)(a) == 5);
205 assert(std::bind(&A_int_1::data_, a)() == 5);
206 A_int_1* ap = &a;
207 assert(std::bind(&A_int_1::data_, _1)(a) == 5);
208 std::bind(&A_int_1::data_, _1)(a) = 6;
209 assert(std::bind(&A_int_1::data_, _1)(a) == 6);
210 assert(std::bind(&A_int_1::data_, _1)(ap) == 6);
211 std::bind(&A_int_1::data_, _1)(ap) = 7;
212 assert(std::bind(&A_int_1::data_, _1)(ap) == 7);