Lines Matching refs:A_int_1
145 struct A_int_1
147 A_int_1() : data_(5) {}
178 assert(std::bind(A_int_1(), _1)(i) == 3);
179 assert(std::bind(A_int_1(), i)() == 3);
183 A_int_1 a;
184 assert(std::bind(&A_int_1::mem1, _1)(a) == 3);
185 assert(std::bind(&A_int_1::mem1, a)() == 3);
186 A_int_1* ap = &a;
187 assert(std::bind(&A_int_1::mem1, _1)(ap) == 3);
188 assert(std::bind(&A_int_1::mem1, ap)() == 3);
192 A_int_1 a;
193 assert(std::bind(&A_int_1::mem2, _1)(A_int_1()) == 4);
194 assert(std::bind(&A_int_1::mem2, A_int_1())() == 4);
195 A_int_1* ap = &a;
196 assert(std::bind(&A_int_1::mem2, _1)(ap) == 4);
197 assert(std::bind(&A_int_1::mem2, ap)() == 4);
201 A_int_1 a;
202 assert(std::bind(&A_int_1::data_, _1)(a) == 5);
203 assert(std::bind(&A_int_1::data_, a)() == 5);
204 A_int_1* ap = &a;
205 assert(std::bind(&A_int_1::data_, _1)(a) == 5);
206 std::bind(&A_int_1::data_, _1)(a) = 6;
207 assert(std::bind(&A_int_1::data_, _1)(a) == 6);
208 assert(std::bind(&A_int_1::data_, _1)(ap) == 6);
209 std::bind(&A_int_1::data_, _1)(ap) = 7;
210 assert(std::bind(&A_int_1::data_, _1)(ap) == 7);