• Home
  • Raw
  • Download

Lines Matching refs:v1

84   vector <int> v1(10);  in replif1()  local
85 for (int i = 0; (size_t)i < v1.size(); ++i) in replif1()
86 v1[i] = i % 5; in replif1()
88 replace_if(v1.begin(), v1.end(), odd, 42); in replif1()
91 CPPUNIT_ASSERT(v1[0]==0); in replif1()
92 CPPUNIT_ASSERT(v1[1]==42); in replif1()
93 CPPUNIT_ASSERT(v1[2]==2); in replif1()
94 CPPUNIT_ASSERT(v1[3]==42); in replif1()
95 CPPUNIT_ASSERT(v1[4]==4); in replif1()
96 CPPUNIT_ASSERT(v1[5]==0); in replif1()
97 CPPUNIT_ASSERT(v1[6]==42); in replif1()
98 CPPUNIT_ASSERT(v1[7]==2); in replif1()
99 CPPUNIT_ASSERT(v1[8]==42); in replif1()
100 CPPUNIT_ASSERT(v1[9]==4); in replif1()
134 vector <int> v1(10); in replace1() local
135 for (int i = 0; (size_t)i < v1.size(); ++i) in replace1()
136 v1[i] = i % 5; in replace1()
137 replace(v1.begin(), v1.end(), 2, 42); in replace1()
141 CPPUNIT_ASSERT(v1[0]==0); in replace1()
142 CPPUNIT_ASSERT(v1[1]==1); in replace1()
143 CPPUNIT_ASSERT(v1[2]==42); in replace1()
144 CPPUNIT_ASSERT(v1[3]==3); in replace1()
145 CPPUNIT_ASSERT(v1[4]==4); in replace1()
146 CPPUNIT_ASSERT(v1[5]==0); in replace1()
147 CPPUNIT_ASSERT(v1[6]==1); in replace1()
148 CPPUNIT_ASSERT(v1[7]==42); in replace1()
149 CPPUNIT_ASSERT(v1[8]==3); in replace1()
150 CPPUNIT_ASSERT(v1[9]==4); in replace1()
155 vector <int> v1(10); in repcpif1() local
156 for (int i = 0; (size_t)i < v1.size(); ++i) in repcpif1()
157 v1[i] = i % 5; in repcpif1()
158 vector <int> v2(v1.size()); in repcpif1()
163 replace_copy_if(v1.begin(), v1.end(), v2.begin(), odd, 42); in repcpif1()
164 CPPUNIT_ASSERT(v1[0]==0); in repcpif1()
165 CPPUNIT_ASSERT(v1[1]==1); in repcpif1()
166 CPPUNIT_ASSERT(v1[2]==2); in repcpif1()
167 CPPUNIT_ASSERT(v1[3]==3); in repcpif1()
168 CPPUNIT_ASSERT(v1[4]==4); in repcpif1()
169 CPPUNIT_ASSERT(v1[5]==0); in repcpif1()
170 CPPUNIT_ASSERT(v1[6]==1); in repcpif1()
171 CPPUNIT_ASSERT(v1[7]==2); in repcpif1()
172 CPPUNIT_ASSERT(v1[8]==3); in repcpif1()
173 CPPUNIT_ASSERT(v1[9]==4); in repcpif1()