当链表兑现(C++)

当链表实现(C++)
C/C++ code
class IntSLLNode {
public:
    int info;
    class IntSLLNode *next;
    IntSLLNode(int el, IntSLLNode *ptr = 0) {
        info = el; next = ptr;
    }
};





C/C++ code

int IntSLList::deleteFromHead() {
    int el = head->info;
    IntSLLNode *tmp = head;
    if (head == tail)     
         head = tail = 0;
    else head = head->next;
    delete tmp;
    return el;
}




我这两段代码片段里的*tmp 有什么用 我怎么觉得没用处?

------解决方案--------------------
那么大的用处居然说没有用?

IntSLLNode *tmp = head;
//明显是要删掉头结点嘛!!