0001 template <typename T> List<T>::~List() //列表析构器 0002 { clear(); delete head; delete tail; } //清空列表,释放头、尾哨兵节点