aboutsummaryrefslogtreecommitdiff
path: root/list.cpp
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2021-11-20 22:40:56 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2021-11-20 22:40:56 +0000
commitfccfcd4a9f51f9d97a693a9b301157a9aa88db6f (patch)
tree1cb95966180a8b0a1cdbb3b55b70acf3276a3d07 /list.cpp
parenta495bd9c64fc860fa4bb6a9c80f50049ec62b6d3 (diff)
downloadalgorithms-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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/list.cpp b/list.cpp
index 8c671a1..937e7a7 100644
--- a/list.cpp
+++ b/list.cpp
@@ -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>;