mllnode<_Tp> *tmp = head;
head = head->next;
if (head == NULL)
- tail = NULL;
+ tail = NULL;
else
- head->prev = NULL;
+ head->prev = NULL;
delete tmp;
_size--;
}
mllnode<_Tp> *tmp = tail;
tail = tail->prev;
if (tail == NULL)
- head = NULL;
+ head = NULL;
else
- tail->next = NULL;
+ tail->next = NULL;
delete tmp;
_size--;
}
sllnode<_Tp> *tmp = head;
head = head->next;
if (head == NULL)
- tail = NULL;
+ tail = NULL;
else
- head->prev = NULL;
+ head->prev = NULL;
delete tmp;
_size--;
}
sllnode<_Tp> *tmp = tail;
tail = tail->prev;
if (tail == NULL)
- head = NULL;
+ head = NULL;
else
- tail->next = NULL;
+ tail->next = NULL;
delete tmp;
_size--;
}