Lines Matching defs:deq
288 deque<MovableStruct> deq;
289 deq.push_back(MovableStruct());
290 deq.push_back(MovableStruct());
291 deq.push_back(MovableStruct());
292 deq.push_back(MovableStruct());
294 // deq contains 4 elements
302 deq.insert(deq.begin() + 2, deq.begin(), deq.end());
303 // deq contains 8 elements
311 deque<MovableStruct> d2 = deq;
319 deq.insert(deq.begin() + 2, d2.begin(), d2.end() );
321 // deq contains 8 elements
333 deq.erase(deq.begin() + 1, deq.begin() + 3 );
335 // deq contains 6 elements
347 deq.erase(deq.end() - 3, deq.end() - 1);
349 // deq contains 4 elements
359 deq.erase(deq.begin());
361 // deq contains 3 elements
371 //deq with 3 elements and d2 with 4 elements are now out of scope
381 deque<CompleteMovableStruct> deq;
382 deq.push_back(CompleteMovableStruct());
383 deq.push_back(CompleteMovableStruct());
384 deq.push_back(CompleteMovableStruct());
385 deq.push_back(CompleteMovableStruct());
387 // deq contains 4 elements
395 deq.insert(deq.begin() + 2, deq.begin(), deq.end());
397 // deq contains 8 elements
405 deque<CompleteMovableStruct> d2 = deq;
413 deq.insert(deq.begin() + 2, d2.begin(), d2.end());
415 // deq contains 8 elements
426 deq.erase(deq.begin() + 1, deq.begin() + 3);
428 // deq contains 6 elements
437 deq.erase(deq.end() - 3, deq.end() - 1);
439 // deq contains 4 elements
448 deq.erase(deq.begin());
450 // deq contains 3 elements
457 //deq with 3 elements and v2 with 4 elements are now out of scope