|
2af3997456
|
LinkedList: Fixed some boogs, LinkedList is now boog-free :)
|
2022-12-26 15:54:29 +01:00 |
|
|
7efb79dd26
|
LinkedList: Check for nullptrs in detach_from_list()
|
2022-12-26 12:45:49 +01:00 |
|
|
a11a5dec1f
|
DoublyLinkedList -> LinkedList
continuous-integration/drone/push Build is passing
|
2022-12-19 12:43:23 +01:00 |
|
|
1269a045bd
|
LinkedList: Add a convenience delayed_for_each() method.
This is a special way of iterating over the list which permits removing items while iterating.
|
2022-12-19 12:41:25 +01:00 |
|
|
5b72144fac
|
Add a handy consume() method to LinkedList
continuous-integration/drone/push Build is passing
|
2022-12-19 12:35:08 +01:00 |
|
|
e4b971f09c
|
Make LinkedList::prepend() also set the element as the last one if we have no elements
continuous-integration/drone/push Build is passing
|
2022-12-17 15:28:18 +01:00 |
|
|
f5de9c5589
|
LinkedList: Add a prepend() method
continuous-integration/drone/push Build is passing
|
2022-12-17 15:27:16 +01:00 |
|
|
c5220cbf64
|
LinkedList: Rename append_after to add_after
|
2022-12-17 15:27:00 +01:00 |
|
|
ace674e518
|
LinkedList: Make sure the contained type inherits from DoublyLinkedListNode<T>
|
2022-12-17 13:49:47 +01:00 |
|
|
b6173e2b67
|
LinkedList: Return Option instead of ENONE if no value
|
2022-12-08 16:09:04 +01:00 |
|
|
757cee4693
|
Add accessors for when you're sure a linked list is not empty
|
2022-12-07 16:11:59 +00:00 |
|
|
b5c6ae253d
|
Make LinkedList a lot better
continuous-integration/drone/push Build is passing
|
2022-12-06 18:41:35 +01:00 |
|
|
d8f75f1d3c
|
LinkedList: Add an append_after() method
Can be used to append an item after another one instead of at the end of the list.
With doubly linked lists, this is extremely easy to achieve (O(1)).
|
2022-12-06 18:25:08 +01:00 |
|
|
146da13e43
|
LinkedList: Make sure to explicitly mark the first node's next and last nodes as nullptr
|
2022-12-06 18:23:19 +01:00 |
|
|
07e6ebd3cc
|
LinkedList: Fix nonnull_or_error
|
2022-12-06 18:22:45 +01:00 |
|
|
87fb195202
|
Add DoublyLinkedList data structure
continuous-integration/drone/push Build is passing
|
2022-12-06 17:37:43 +01:00 |
|