Searched refs:newNode (Results 1 – 2 of 2) sorted by relevance
215 _Node* newNode = new _Node(val); // alloc & copy-construct in insert() local216 newNode->setNext(posn.getNode()); in insert()217 newNode->setPrev(posn.getNode()->getPrev()); in insert()218 posn.getNode()->getPrev()->setNext(newNode); in insert()219 posn.getNode()->setPrev(newNode); in insert()220 return iterator(newNode); in insert()
191 _Node* newNode = new (std::nothrow) _Node(val); // alloc & copy-construct in insert() local192 newNode->setNext(posn.getNode()); in insert()193 newNode->setPrev(posn.getNode()->getPrev()); in insert()194 posn.getNode()->getPrev()->setNext(newNode); in insert()195 posn.getNode()->setPrev(newNode); in insert()196 return iterator(newNode); in insert()