Lines Matching refs:vit
196 vector<int>::iterator vit;
206 vit = v.erase( v.begin() ); // Erase first element.
207 CPPUNIT_ASSERT( *vit == 4 );
216 vit = v.erase(v.end() - 1); // Erase last element.
217 CPPUNIT_ASSERT( vit == v.end() );
240 vector<int>::iterator vit;
241 vit = v.insert(v.begin(), 0); // Insert before first element.
242 CPPUNIT_ASSERT( *vit == 0 );
244 vit = v.insert(v.end(), 36); // Insert after last element.
245 CPPUNIT_ASSERT( *vit == 36 );