adding list implementation

This commit is contained in:
Jidong Xiao
2024-02-13 13:18:21 -05:00
parent 62f30d5f3e
commit ae6e937a3d
3 changed files with 9 additions and 59 deletions

View File

@@ -59,7 +59,6 @@ template <class T>
class dslist {
public:
typedef list_iterator<T> iterator;
typedef unsigned int size_type;
// default constructor
dslist(){
head = nullptr;
@@ -102,7 +101,7 @@ class dslist {
}
}
size_type size(){
unsigned int size(){
return size_;
}