Lines Matching defs:vect
90 vector<MovableStruct> vect;
91 vect.push_back(MovableStruct());
92 vect.push_back(MovableStruct());
93 vect.push_back(MovableStruct());
94 vect.push_back(MovableStruct());
96 // vect contains 4 elements
117 vect.insert(vect.begin() + 2, vect.begin(), vect.end());
118 // vect contains 8 elements
126 vector<MovableStruct> v2 = vect;
134 vect.insert(vect.begin() + 2, v2.begin(), v2.end() );
136 // vect contains 8 elements
148 vect.erase(vect.begin(), vect.begin() + 2 );
150 // vect contains 6 elements
160 vect.erase(vect.end() - 2, vect.end());
162 // vect contains 4 elements
167 vect.erase(vect.begin());
169 // vect contains 3 elements
180 //vect with 3 elements and v2 with 4 elements are now out of scope
189 vector<CompleteMovableStruct> vect;
190 vect.push_back(CompleteMovableStruct());
191 vect.push_back(CompleteMovableStruct());
192 vect.push_back(CompleteMovableStruct());
193 vect.push_back(CompleteMovableStruct());
195 // vect contains 4 elements
216 vect.insert(vect.begin() + 2, vect.begin(), vect.end());
218 // vect contains 8 elements
226 vector<CompleteMovableStruct> v2 = vect;
234 vect.insert(vect.begin() + 2, v2.begin(), v2.end());
236 // vect contains 8 elements
248 vect.erase(vect.begin(), vect.begin() + 2);
250 // vect contains 6 elements
259 vect.erase(vect.end() - 2, vect.end());
261 // vect contains 4 elements
266 vect.erase(vect.begin());
268 // vect contains 3 elements
278 //vect with 3 elements and v2 with 4 elements are now out of scope