ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/ccscs20/DoublyLinkedList.hpp
(Generate patch)

Comparing DoublyLinkedList.hpp (file contents):
Revision 5 by Douglas Thrift, 2004-05-13T17:50:29-07:00 vs.
Revision 6 by Douglas Thrift, 2004-05-13T23:17:43-07:00

# Line 22 | Line 22 | public:
22          void addFront(const Type& value) { front.addNext(value); }
23          void addBack(const Type& value) { back.addPrevious(value); }
24          bool contains(const Type& value) { return front.contains(value, &back); }
25 +        void removeFirst(const Type& value) { front.remove(value, &back); }
26 +        void removeLast(const Type& value) { back.remove(value, &front, false); }
27   };
28  
29   template<typename Type>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines