diff options
| author | rPatrickWarner <[email protected]> | 2024-05-29 13:30:58 -0700 |
|---|---|---|
| committer | rPatrickWarner <[email protected]> | 2024-05-29 13:30:58 -0700 |
| commit | e1ee4bf5895e11d60f60681dc8afff23e9211552 (patch) | |
| tree | 8d122ba30d3291b6051570552682ebd9593c1d66 /CST 126/Homework3/SinglyLinkedList.hpp | |
| parent | Template node branch to Develop Branch (#3) (diff) | |
| download | homework-1-reecepwarner-e1ee4bf5895e11d60f60681dc8afff23e9211552.tar.xz homework-1-reecepwarner-e1ee4bf5895e11d60f60681dc8afff23e9211552.zip | |
cleaned up and added some unit tests
Diffstat (limited to 'CST 126/Homework3/SinglyLinkedList.hpp')
| -rw-r--r-- | CST 126/Homework3/SinglyLinkedList.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CST 126/Homework3/SinglyLinkedList.hpp b/CST 126/Homework3/SinglyLinkedList.hpp index 92f4a1f..f6bbf03 100644 --- a/CST 126/Homework3/SinglyLinkedList.hpp +++ b/CST 126/Homework3/SinglyLinkedList.hpp @@ -65,6 +65,7 @@ inline bool RemoveFirst(SinglyLinkedList<T>* list) if (list->_size == 1) { list->_head =nullptr; + list->_size--; } else { |