Lines Matching refs:array
55 int array [3] = { 1, 2, 3 }; in bind1st1() local
56 int* p = remove_if((int*)array, (int*)array + 3, bind1st(less<int>(), 2)); in bind1st1()
58 CPPUNIT_ASSERT(p == &array[2]); in bind1st1()
59 CPPUNIT_ASSERT(array[0] == 1); in bind1st1()
60 CPPUNIT_ASSERT(array[1] == 2); in bind1st1()
62 for_each((int*)array, (int*)array + 3, bind1st(pre_increment(), 1)); in bind1st1()
63 CPPUNIT_ASSERT(array[0] == 2); in bind1st1()
64 CPPUNIT_ASSERT(array[1] == 3); in bind1st1()
65 CPPUNIT_ASSERT(array[2] == 4); in bind1st1()
67 for_each((int*)array, (int*)array + 3, bind2nd(post_increment(), 1)); in bind1st1()
68 CPPUNIT_ASSERT(array[0] == 3); in bind1st1()
69 CPPUNIT_ASSERT(array[1] == 4); in bind1st1()
70 CPPUNIT_ASSERT(array[2] == 5); in bind1st1()
75 int array [3] = { 1, 2, 3 }; in bind2nd1() local
76 replace_if(array, array + 3, binder2nd<greater<int> >(greater<int>(), 2), 4); in bind2nd1()
78 CPPUNIT_ASSERT(array[0]==1); in bind2nd1()
79 CPPUNIT_ASSERT(array[1]==2); in bind2nd1()
80 CPPUNIT_ASSERT(array[2]==4); in bind2nd1()
84 int array [3] = { 1, 2, 3 }; in bind2nd2() local
85 replace_if(array, array + 3, bind2nd(greater<int>(), 2), 4); in bind2nd2()
86 CPPUNIT_ASSERT(array[0]==1); in bind2nd2()
87 CPPUNIT_ASSERT(array[1]==2); in bind2nd2()
88 CPPUNIT_ASSERT(array[2]==4); in bind2nd2()
104 int array[3] = { 1, 2, 3 }; in bind2nd3() local
105 transform(array, array + 3, array, bind2nd(ptr_fun(test_func1), 1)); in bind2nd3()
106 transform(array, array + 3, array, bind1st(ptr_fun(test_func1), -1)); in bind2nd3()
107 CPPUNIT_ASSERT(array[0] == 1); in bind2nd3()
108 CPPUNIT_ASSERT(array[1] == 2); in bind2nd3()
109 CPPUNIT_ASSERT(array[2] == 3); in bind2nd3()
111 transform(array, array + 3, array, bind2nd(ptr_fun(test_func2), 10)); in bind2nd3()
112 CPPUNIT_ASSERT(array[0] == 21); in bind2nd3()
113 CPPUNIT_ASSERT(array[1] == 22); in bind2nd3()
114 CPPUNIT_ASSERT(array[2] == 23); in bind2nd3()
143 A array[3]; in bind_memfn() local
145 for_each( array, array + 3, bind2nd( mem_fun_ref(&A::f), 12 ) ); in bind_memfn()
147 CPPUNIT_CHECK( array[0].v() == 12 ); in bind_memfn()