Import backup from 2004-06-12

This commit is contained in:
josh committed 2017-07-25 22:23:47 -04:00
1 parent 9a8d2c29cb
commit c76725eac3
10 files changed
+224 -185

No files matched your search

+4 -8
View File
@@ -51,15 +51,13 @@ public:
{
return theNode->data;
}
Element & operator++() //prefix
void operator++() //prefix
{
theNode = theNode->next;
return theNode->data;
}
Element & operator++(int dum) //postfix
void operator++(int dum) //postfix
{
theNode = theNode->next;
return theNode->prev->data;
}
bool operator==(const iterator & second) const
{ return theNode == second.theNode; }
@@ -84,15 +82,13 @@ public:
{
return theNode->data;
}
Element & operator++() //prefix
void operator++() //prefix
{
theNode = theNode->prev;
return theNode->data;
}
Element & operator++(int dum) //postfix
void operator++(int dum) //postfix
{
theNode = theNode->prev;
return theNode->next->data;
}
bool operator==(const reverse_iterator & second) const
{ return theNode == second.theNode; }