• Home
  • Raw
  • Download

Lines Matching refs:v1

82   vector <int> v1(numbers, numbers+10);  in parsrt1()  local
83 partial_sort(v1.begin(), v1.begin() + v1.size() / 2, v1.end()); in parsrt1()
85 CPPUNIT_ASSERT(v1[0]==2); in parsrt1()
86 CPPUNIT_ASSERT(v1[1]==3); in parsrt1()
87 CPPUNIT_ASSERT(v1[2]==3); in parsrt1()
88 CPPUNIT_ASSERT(v1[3]==4); in parsrt1()
89 CPPUNIT_ASSERT(v1[4]==5); in parsrt1()
90 CPPUNIT_ASSERT(v1[5]==8); in parsrt1()
91 CPPUNIT_ASSERT(v1[6]==8); in parsrt1()
92 CPPUNIT_ASSERT(v1[7]==7); in parsrt1()
93 CPPUNIT_ASSERT(v1[8]==6); in parsrt1()
94 CPPUNIT_ASSERT(v1[9]==5); in parsrt1()
102 vector <char const*> v1(nameSize); in parsrt2() local
103 for(size_t i = 0; i < v1.size(); i++) in parsrt2()
104 v1[i] = names[i]; in parsrt2()
106 partial_sort(v1.begin(), v1.begin() + nameSize / 2, v1.end(), str_compare); in parsrt2()
109 CPPUNIT_ASSERT( strcmp(v1[0], "aa") == 0 ); in parsrt2()
110 CPPUNIT_ASSERT( v1[0] == names[0] ); in parsrt2()
111 CPPUNIT_ASSERT( strcmp(v1[1], "bb") == 0 ); in parsrt2()
112 CPPUNIT_ASSERT( v1[1] == names[5] ); in parsrt2()
113 CPPUNIT_ASSERT( strcmp(v1[2], "cc") == 0 ); in parsrt2()
114 CPPUNIT_ASSERT( v1[2] == names[4] ); in parsrt2()
115 CPPUNIT_ASSERT( strcmp(v1[3], "ff") == 0 ); in parsrt2()
116 CPPUNIT_ASSERT( v1[3] == names[1] ); in parsrt2()
117 CPPUNIT_ASSERT( strcmp(v1[4], "ee") == 0 ); in parsrt2()
118 CPPUNIT_ASSERT( v1[4] == names[3] ); in parsrt2()
119 CPPUNIT_ASSERT( strcmp(v1[5], "dd") == 0 ); in parsrt2()
120 CPPUNIT_ASSERT( v1[5] == names[2] ); in parsrt2()
142 vector <int> v1(numbers, numbers+10); in parsrtc1() local
145 partial_sort_copy(v1.begin(), v1.end(), result.begin(), result.end()); in parsrtc1()
158 vector <char const*> v1(nameSize); in parsrtc2() local
159 for(size_t i = 0; i < v1.size(); i++) in parsrtc2()
160 v1[i] = names[i]; in parsrtc2()
162 partial_sort_copy(v1.begin(), v1.end(), result.begin(), result.end(), str_compare); in parsrtc2()
218 vector <int> v1(10); in partsum1() local
219 __iota(v1.begin(), v1.end(), 0); in partsum1()
220 vector <int> v2(v1.size()); in partsum1()
221 partial_sum(v1.begin(), v1.end(), v2.begin()); in partsum1()
238 vector <int> v1(5); in partsum2() local
239 __iota(v1.begin(), v1.end(), 1); in partsum2()
240 vector <int> v2(v1.size()); in partsum2()
241 partial_sum(v1.begin(), v1.end(), v2.begin(), multiplies<int>()); in partsum2()