diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2021-11-20 22:40:56 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2021-11-20 22:40:56 +0000 |
commit | fccfcd4a9f51f9d97a693a9b301157a9aa88db6f (patch) | |
tree | 1cb95966180a8b0a1cdbb3b55b70acf3276a3d07 /list.cpp | |
parent | a495bd9c64fc860fa4bb6a9c80f50049ec62b6d3 (diff) | |
download | algorithms-fccfcd4a9f51f9d97a693a9b301157a9aa88db6f.tar.gz algorithms-fccfcd4a9f51f9d97a693a9b301157a9aa88db6f.tar.bz2 algorithms-fccfcd4a9f51f9d97a693a9b301157a9aa88db6f.zip |
(list)~struct List is not necessary
Slight whiplash from change to C++, can just use typename now.
Diffstat (limited to 'list.cpp')
-rw-r--r-- | list.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -14,9 +14,9 @@ struct List }; template <typename T> -struct List<T> *append(struct List<T> *lst, T value) +List<T> *append(List<T> *lst, T value) { - struct List<T> *node; + List<T> *node; if (lst == NULL) { node = new List<T>; |