Added ability to maintain ordered linked list based on "insertAsc" function. The function takes a comparator function that allows for specific order behavior. If values collide, then FIFO or LIFO order can be maintained based on comparator function implementation.
Fork of LinkedList by
Revision 6:e3ab7684c395, committed 2013-05-14
- Comitter:
- sam_grove
- Date:
- Tue May 14 23:06:11 2013 +0000
- Parent:
- 5:28e11c75b433
- Child:
- 7:4ed66162aaa8
- Commit message:
- removed old code that was commented out
Changed in this revision
LinkedList.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/LinkedList.cpp Mon May 13 04:38:05 2013 +0000 +++ b/LinkedList.cpp Tue May 14 23:06:11 2013 +0000 @@ -28,7 +28,6 @@ { // clear the member _head = 0; -// _head->next = 0; return; }