Home | History | Annotate | Download | only in ADT

Lines Matching defs:Last

118                              ilist_iterator<NodeTy> /*last*/) {}
307 /// of the first node in the list always points to the last node in the list,
470 // [first, last) into position.
472 void transfer(iterator position, iplist &L2, iterator first, iterator last) {
473 assert(first != last && "Should be checked by callers");
475 if (position != last) {
483 // Remove [first, last) from its old position.
485 NodeTy *Next = last.getNodePtrUnchecked(), *Last = this->getPrev(Next);
492 // Splice [first, last) into its new position.
504 this->setNext(Last, PosNext);
505 this->setPrev(PosNext, Last);
526 iterator erase(iterator first, iterator last) {
527 while (first != last)
529 return last;
547 template<class InIt> void insert(iterator where, InIt first, InIt last) {
548 for (; first != last; ++first) insert(where, *first);
557 iterator last = first; ++last;
558 if (where == first || where == last) return; // No change
559 transfer(where, L2, first, last);
561 void splice(iterator where, iplist &L2, iterator first, iterator last) {
562 if (first != last) transfer(where, L2, first, last);
636 template<class InIt> ilist(InIt first, InIt last) {
637 insert(this->begin(), first, last);